mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat: add xcompose parser
This commit is contained in:
parent
04a9a90c2a
commit
d4fb7557ba
5 changed files with 34 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -698,6 +698,9 @@
|
|||
"wing": {
|
||||
"revision": "a30e8eca90b7a7deb3a85503dbdd172a68ba0e05"
|
||||
},
|
||||
"xcompose": {
|
||||
"revision": "01344fed31a3cd37a63f03357ec80cbc592a93b5"
|
||||
},
|
||||
"xml": {
|
||||
"revision": "a3bfa1ae7e8400ab81a6358f5e8d2983f5dd0697"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
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