diff options
author | George Fraser <george@fivetran.com> | 2018-12-22 14:52:47 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2018-12-22 14:52:47 -0800 |
commit | 59f2437434d1d7cae23e712bb6923f319a85457e (patch) | |
tree | 2c5930f9d177ff3faebd247e1dd0f41a1a14774d /lib | |
parent | e3e6064d30d8b1ca9481b75b3e815a1c26ad86be (diff) | |
download | java-language-server-59f2437434d1d7cae23e712bb6923f319a85457e.zip |
Special comments
Diffstat (limited to 'lib')
-rw-r--r-- | lib/java.tmLanguage.json | 34 |
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" } ] }, |