diff options
Diffstat (limited to 'lib/java.tmLanguage.json')
-rw-r--r-- | lib/java.tmLanguage.json | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/lib/java.tmLanguage.json b/lib/java.tmLanguage.json index 87b77af..07be47b 100644 --- a/lib/java.tmLanguage.json +++ b/lib/java.tmLanguage.json @@ -46,12 +46,27 @@ { "match": "\\bthrow|return|break|continue|default|do|while|switch|if|else|const|goto\\b", "name": "keyword.java" + }, + { + "match": "\\b(instanceof)\\s+((\\w+\\.)*\\w+)", + "captures": { + "1": { + "name": "keyword.instanceof.java" + }, + "2": { + "name": "entity.name.class.java" + } + } } ], "repository": { "class-name": { - "match": "(\\w+\\.)*\\w+", - "name": "entity.name.class.java" + "patterns": [ + { + "match": "(\\w+\\.)*\\w+", + "name": "entity.name.class.java" + } + ] } } }
\ No newline at end of file |