aboutsummaryrefslogtreecommitdiffstats
path: root/queries/xcompose/highlights.scm
diff options
context:
space:
mode:
authorObserverOfTime <chronobserver@disroot.org>2023-11-10 00:23:42 +0200
committerAmaan Qureshi <amaanq12@gmail.com>2023-11-10 14:10:20 -0500
commitd4fb7557ba0ee203f18b3f290d80a8940f2d637d (patch)
tree705c782360fb705a04525701a35f14e12d2b8e76 /queries/xcompose/highlights.scm
parentfix(htmldjango): improve highlights (diff)
downloadnvim-treesitter-d4fb7557ba0ee203f18b3f290d80a8940f2d637d.tar
nvim-treesitter-d4fb7557ba0ee203f18b3f290d80a8940f2d637d.tar.gz
nvim-treesitter-d4fb7557ba0ee203f18b3f290d80a8940f2d637d.tar.bz2
nvim-treesitter-d4fb7557ba0ee203f18b3f290d80a8940f2d637d.tar.lz
nvim-treesitter-d4fb7557ba0ee203f18b3f290d80a8940f2d637d.tar.xz
nvim-treesitter-d4fb7557ba0ee203f18b3f290d80a8940f2d637d.tar.zst
nvim-treesitter-d4fb7557ba0ee203f18b3f290d80a8940f2d637d.zip
feat: add xcompose parser
Diffstat (limited to 'queries/xcompose/highlights.scm')
-rw-r--r--queries/xcompose/highlights.scm20
1 files changed, 20 insertions, 0 deletions
diff --git a/queries/xcompose/highlights.scm b/queries/xcompose/highlights.scm
new file mode 100644
index 000000000..48366985d
--- /dev/null
+++ b/queries/xcompose/highlights.scm
@@ -0,0 +1,20 @@
+(keysym) @constant
+
+((keysym) @constant.builtin
+ (#eq? @constant.builtin "Multi_key"))
+
+(text) @string
+
+"include" @include
+
+[ (octal) (hex) ] @number
+
+[ (modifier) "None" ] @type.qualifier
+
+[ "%L" "%H" "%S" ] @string.special
+
+[ "!" "~" ] @operator
+
+[ ":" "<" ">" "\"" ] @punctuation.delimiter
+
+(comment) @comment @spell