diff options
author | George Fraser <george@fivetran.com> | 2018-12-30 20:30:09 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2018-12-30 20:30:09 -0800 |
commit | 31c4b56a58d3a6d7cce69796cd3626dbb550fff1 (patch) | |
tree | 6536f41b5d347d718b334dd4a93fc5c93d368a97 /lib | |
parent | 95e9037be94e0d2e6b892fd42a106fd562ea4edb (diff) | |
download | java-language-server-31c4b56a58d3a6d7cce69796cd3626dbb550fff1.zip |
Coloring
Diffstat (limited to 'lib')
-rw-r--r-- | lib/java.tmLanguage.json | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/lib/java.tmLanguage.json b/lib/java.tmLanguage.json index 726c49d..d6080fa 100644 --- a/lib/java.tmLanguage.json +++ b/lib/java.tmLanguage.json @@ -664,6 +664,29 @@ ] }, { + "begin": "String\\.format\\(", + "end": "\\)", + "name": "meta.string.format", + "patterns": [ + { + "begin": "\"", + "end": "\"", + "name": "string.quoted.double.format.java", + "patterns": [ + { + "match": "\\\\.", + "name": "constant.character.escape" + }, + { + "match": "%(\\d+\\$|<)?[-#+ 0,(]*(\\d+)?(\\.\\d+)?([tT][HIklMSLNpzZsQBbhAaCYyjmde]?|[bBhHsScCdoxXeEfgGaA%n])", + "name": "constant.character.escape", + "TODO": "more complicated format strings" + } + ] + } + ] + }, + { "include": "#keywords" }, { @@ -873,17 +896,7 @@ }, { "begin": "\"", - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin" - } - }, "end": "\"", - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end" - } - }, "name": "string.quoted.double.java", "patterns": [ { @@ -894,17 +907,7 @@ }, { "begin": "'", - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin" - } - }, "end": "'", - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end" - } - }, "name": "string.quoted.single.java", "patterns": [ { |