From 2c9c8b7797280de3587a4233cfb2ba8bbb0ac1ff Mon Sep 17 00:00:00 2001 From: George Fraser Date: Mon, 1 Apr 2019 20:07:21 -0700 Subject: Highlight constants --- TODOS.md | 4 ++++ lib/java.tmLanguage.json | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/TODOS.md b/TODOS.md index 9970849..da3a1ea 100644 --- a/TODOS.md +++ b/TODOS.md @@ -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": "\\(", @@ -892,6 +892,10 @@ }, "constants": { "patterns": [ + { + "match": "\\b[A-Z0-9_]+\\b", + "name": "constant.numeric markup.italic" + }, { "match": "\\b(null|true|false)\\b", "name": "constant.numeric" -- cgit v1.2.3