mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-10 15:30:01 -04:00
feat: add xcompose parser
This commit is contained in:
parent
04a9a90c2a
commit
d4fb7557ba
5 changed files with 34 additions and 0 deletions
20
queries/xcompose/highlights.scm
Normal file
20
queries/xcompose/highlights.scm
Normal file
|
|
@ -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
|
||||
2
queries/xcompose/injections.scm
Normal file
2
queries/xcompose/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue