diff options
-rw-r--r-- | TODOS.md | 5 | ||||
-rw-r--r-- | lib/java.tmLanguage.json | 14 |
2 files changed, 8 insertions, 11 deletions
@@ -24,7 +24,4 @@ - Don't remove imports when there's an unresolved reference to that name ## JShell -- Support .jshell extension as "scratch pad" - -# Coloring -- { on next line breaks coloring
\ No newline at end of file +- Support .jshell extension as "scratch pad"
\ No newline at end of file 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": [ { |