diff options
Diffstat (limited to 'queries/cpon/highlights.scm')
| -rw-r--r-- | queries/cpon/highlights.scm | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/queries/cpon/highlights.scm b/queries/cpon/highlights.scm new file mode 100644 index 000000000..f08647293 --- /dev/null +++ b/queries/cpon/highlights.scm @@ -0,0 +1,45 @@ +; Literals + +(string) @string +(escape_sequence) @string.escape + +(hex_blob + "x" @character.special + (_) @string) + +(esc_blob + "b" @character.special + (_) @string) + +(datetime + "d" @character.special + (_) @string.special) + +(number) @number + +(float) @float + +(boolean) @boolean + +(null) @constant.builtin + +; Punctuation + +[ + "," + ":" +] @punctuation.delimiter + +[ "{" "}" ] @punctuation.bracket + +[ "[" "]" ] @punctuation.bracket + +[ "<" ">" ] @punctuation.bracket + +; Comments + +(comment) @comment @spell + +; Errors + +(ERROR) @error |
