summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2018-12-31 22:00:53 -0800
committerGeorge Fraser <george@fivetran.com>2018-12-31 22:00:53 -0800
commit27aa558c7549d4bb91dbfb63744c0d2e64484d16 (patch)
tree6244900d95de66899e6187738d1a59afd29ecf5f /lib
parentb9a12b31cc7d68130bcece5ac595f49d20fe6b59 (diff)
downloadjava-language-server-27aa558c7549d4bb91dbfb63744c0d2e64484d16.zip
Robustness
Diffstat (limited to 'lib')
-rw-r--r--lib/java.tmLanguage.json14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/java.tmLanguage.json b/lib/java.tmLanguage.json
index 056924b..5026f61 100644
--- a/lib/java.tmLanguage.json
+++ b/lib/java.tmLanguage.json
@@ -192,6 +192,7 @@
},
"class-declaration": {
"begin": "(?<!\\.)\\b(class|interface|@interface) +(\\w+)\\b",
+ "end": "}",
"name": "meta.class.java",
"beginCaptures": {
"1": {
@@ -201,7 +202,11 @@
"name": "entity.name.class.java"
}
},
- "end": "$",
+ "endCaptures": {
+ "0": {
+ "name": "keyword.other.end-class-body"
+ }
+ },
"patterns": [
{
"include": "#keywords"
@@ -215,17 +220,12 @@
},
{
"begin": "{",
- "end": "}",
+ "end": "(?=})",
"beginCaptures": {
"0": {
"name": "keyword.other.begin-class-body"
}
},
- "endCaptures": {
- "0": {
- "name": "keyword.other.end-class-body"
- }
- },
"name": "meta.class.body.java",
"patterns": [
{