Skip to content

Commit 5d224a5

Browse files
committed
Revert "Fix highlighting for multiline class"
This reverts commit 7230165.
1 parent 7230165 commit 5d224a5

1 file changed

Lines changed: 1 addition & 21 deletions

File tree

language-support/java/java.tmLanguage.json

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
]
306306
},
307307
"class": {
308-
"begin": "(?=\\w?[\\w\\s-]*\\b(?:class|(?<!@)interface|enum))",
308+
"begin": "(?=\\w?[\\w\\s-]*\\b(?:class|(?<!@)interface|enum)\\s+[\\w$]+)",
309309
"end": "}",
310310
"endCaptures": {
311311
"0": {
@@ -335,26 +335,6 @@
335335
"match": "(class|(?<!@)interface|enum)\\s+([\\w$]+)",
336336
"name": "meta.class.identifier.java"
337337
},
338-
{
339-
"begin": "(class|(?<!@)interface|enum)\\s+",
340-
"beginCaptures": {
341-
"1": {
342-
"name": "storage.modifier.java"
343-
}
344-
},
345-
"end": "([\\w$]+\\s+)",
346-
"endCaptures": {
347-
"1": {
348-
"name": "entity.name.type.class.java"
349-
}
350-
},
351-
"name": "meta.class.identifier.java",
352-
"patterns": [
353-
{
354-
"include": "#comments"
355-
}
356-
]
357-
},
358338
{
359339
"begin": "extends",
360340
"beginCaptures": {

0 commit comments

Comments
 (0)