Skip to content

Commit 5fb57e8

Browse files
hopehadfieldrgrunber
authored andcommitted
Fix highlighting on 'new' keyword for inner classes
Signed-off-by: Hope Hadfield <hhadfiel@redhat.com>
1 parent 3ad9b16 commit 5fb57e8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

language-support/java/java.tmLanguage.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1376,6 +1376,17 @@
13761376
},
13771377
"properties": {
13781378
"patterns": [
1379+
{
1380+
"match": "(\\.)\\s*(new)",
1381+
"captures": {
1382+
"1": {
1383+
"name": "punctuation.separator.period.java"
1384+
},
1385+
"2": {
1386+
"name": "keyword.control.new.java"
1387+
}
1388+
}
1389+
},
13791390
{
13801391
"match": "(\\.)\\s*([a-zA-Z_$][\\w$]*)(?=\\s*\\.\\s*[a-zA-Z_$][\\w$]*)",
13811392
"captures": {

0 commit comments

Comments
 (0)