diff options
author | George Fraser <george@fivetran.com> | 2019-04-01 20:07:21 -0700 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-04-01 20:15:48 -0700 |
commit | 2c9c8b7797280de3587a4233cfb2ba8bbb0ac1ff (patch) | |
tree | f45699b1156ee6721fe7e3568448409a5f75d9b1 | |
parent | 525b9cf04a32540bf70928da767dd6d4d7dbb5ef (diff) | |
download | java-language-server-2c9c8b7797280de3587a4233cfb2ba8bbb0ac1ff.zip |
Highlight constants
-rw-r--r-- | TODOS.md | 4 | ||||
-rw-r--r-- | lib/java.tmLanguage.json | 6 |
2 files changed, 9 insertions, 1 deletions
@@ -1,5 +1,9 @@ # Todo +## Highlight +- `(Cast) thing` +- `Foo.class` + ## Autocomplete - Autocomplete POJO constructor This(T f, U g) { this.f = f; ... } diff --git a/lib/java.tmLanguage.json b/lib/java.tmLanguage.json index 603198f..7b0a920 100644 --- a/lib/java.tmLanguage.json +++ b/lib/java.tmLanguage.json @@ -145,7 +145,7 @@ }, { "match": "\\w+", - "name": "variable.other.enum.constant" + "name": "constant.numeric markup.italic" }, { "begin": "\\(", @@ -893,6 +893,10 @@ "constants": { "patterns": [ { + "match": "\\b[A-Z0-9_]+\\b", + "name": "constant.numeric markup.italic" + }, + { "match": "\\b(null|true|false)\\b", "name": "constant.numeric" }, |