aboutsummaryrefslogtreecommitdiffstats
path: root/queries/cpon/highlights.scm
diff options
context:
space:
mode:
authorAmaan Qureshi <amaanq12@gmail.com>2023-02-23 18:44:10 -0500
committerStephan Seitz <stephan.seitz@fau.de>2023-02-24 01:14:47 -0800
commitc38646edf2bdfac157ca619697ecad9ea87fd469 (patch)
tree6251c7cffebc3b2836ff65eced2aa088a5110ac9 /queries/cpon/highlights.scm
parentstyle: fill in missing code docs wherever applicable (diff)
downloadnvim-treesitter-0.8.5.tar
nvim-treesitter-0.8.5.tar.gz
nvim-treesitter-0.8.5.tar.bz2
nvim-treesitter-0.8.5.tar.lz
nvim-treesitter-0.8.5.tar.xz
nvim-treesitter-0.8.5.tar.zst
nvim-treesitter-0.8.5.zip
feat: add cponv0.8.5
Diffstat (limited to 'queries/cpon/highlights.scm')
-rw-r--r--queries/cpon/highlights.scm45
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