summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODOS.md5
-rw-r--r--lib/java.tmLanguage.json14
2 files changed, 8 insertions, 11 deletions
diff --git a/TODOS.md b/TODOS.md
index fe8c665..d13fe43 100644
--- a/TODOS.md
+++ b/TODOS.md
@@ -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": [
{