feat: add xcompose parser

This commit is contained in:
ObserverOfTime 2023-11-10 00:23:42 +02:00 committed by Amaan Qureshi
parent 04a9a90c2a
commit d4fb7557ba
5 changed files with 34 additions and 0 deletions

View file

@ -406,6 +406,7 @@ We are looking for maintainers to add more parsers and to write query files for
- [x] [wgsl](https://github.com/szebniok/tree-sitter-wgsl) (maintained by @szebniok)
- [x] [wgsl_bevy](https://github.com/theHamsta/tree-sitter-wgsl-bevy) (maintained by @theHamsta)
- [x] [wing](https://github.com/winglang/wing) (experimental, maintained by @gshpychka)
- [x] [xcompose](https://github.com/ObserverOfTime/tree-sitter-xcompose) (maintained by @ObserverOfTime)
- [x] [xml](https://github.com/ObserverOfTime/tree-sitter-xml) (maintained by @ObserverOfTime)
- [x] [yaml](https://github.com/ikatyang/tree-sitter-yaml) (maintained by @stsewd)
- [x] [yang](https://github.com/Hubro/tree-sitter-yang) (maintained by @Hubro)

View file

@ -698,6 +698,9 @@
"wing": {
"revision": "a30e8eca90b7a7deb3a85503dbdd172a68ba0e05"
},
"xcompose": {
"revision": "01344fed31a3cd37a63f03357ec80cbc592a93b5"
},
"xml": {
"revision": "a3bfa1ae7e8400ab81a6358f5e8d2983f5dd0697"
},

View file

@ -2046,6 +2046,14 @@ list.wing = {
experimental = true,
}
list.xcompose = {
install_info = {
url = "https://github.com/ObserverOfTime/tree-sitter-xcompose",
files = { "src/parser.c" },
},
maintainers = { "@ObserverOfTime" },
}
list.xml = {
install_info = {
url = "https://github.com/ObserverOfTime/tree-sitter-xml",

View 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

View file

@ -0,0 +1,2 @@
((comment) @injection.content
(#set! injection.language "comment"))