Skip to content

Commit

Permalink
Fix highlighting on 'new' keyword for inner classes
Browse files Browse the repository at this point in the history
Signed-off-by: Hope Hadfield <[email protected]>
  • Loading branch information
hopehadfield authored and rgrunber committed Jul 27, 2023
1 parent 3ad9b16 commit 5fb57e8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions language-support/java/java.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -1376,6 +1376,17 @@
},
"properties": {
"patterns": [
{
"match": "(\\.)\\s*(new)",
"captures": {
"1": {
"name": "punctuation.separator.period.java"
},
"2": {
"name": "keyword.control.new.java"
}
}
},
{
"match": "(\\.)\\s*([a-zA-Z_$][\\w$]*)(?=\\s*\\.\\s*[a-zA-Z_$][\\w$]*)",
"captures": {
Expand Down

0 comments on commit 5fb57e8

Please sign in to comment.