summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2018-12-22 14:52:47 -0800
committerGeorge Fraser <george@fivetran.com>2018-12-22 14:52:47 -0800
commit59f2437434d1d7cae23e712bb6923f319a85457e (patch)
tree2c5930f9d177ff3faebd247e1dd0f41a1a14774d /lib
parente3e6064d30d8b1ca9481b75b3e815a1c26ad86be (diff)
downloadjava-language-server-59f2437434d1d7cae23e712bb6923f319a85457e.zip
Special comments
Diffstat (limited to 'lib')
-rw-r--r--lib/java.tmLanguage.json34
1 files changed, 18 insertions, 16 deletions
diff --git a/lib/java.tmLanguage.json b/lib/java.tmLanguage.json
index cd3f1f9..9f97463 100644
--- a/lib/java.tmLanguage.json
+++ b/lib/java.tmLanguage.json
@@ -709,26 +709,28 @@
"name": "comment.block.java"
},
{
- "TODO": "different color",
- "begin": "(^[ \\t]+)?(?=//)",
+ "begin": "(//) *(TODO)",
+ "end": "$",
+ "contentName": "punctuation.definition.tag.java",
"beginCaptures": {
"1": {
- "name": "punctuation.whitespace.comment.leading.java"
- }
- },
- "end": "(?!\\G)",
- "patterns": [
- {
- "begin": "//",
- "beginCaptures": {
- "0": {
- "name": "punctuation.definition.comment.java"
+ "name": "punctuation.definition.tag.java"
+ },
+ "2": {
+ "name": "comment.block",
+ "patterns": [
+ {
+ "match": "TODO",
+ "name": "markup.italic"
}
- },
- "end": "\\n",
- "name": "comment.line.double-slash.java"
+ ]
}
- ]
+ }
+ },
+ {
+ "begin": "//",
+ "end": "$",
+ "name": "punctuation.definition.tag.java"
}
]
},