mirror of https://github.com/helix-editor/helix
replace kdl tree-sitter to fix highlighting (#8652)
* replace kdl tree-sitter * kdl: adopt highlights for new tree-sitter * kdl: add indent queries * kdl: add textobjects * kdl: improve syntax highlighting * kdl: update lang-support * kdl: make indents more concise --------- Co-authored-by: Constantin Gahr <constantin.gahr@ipp.mpg.de>pull/8712/head
parent
70bbbd7d19
commit
5c325fe342
@ -0,0 +1,3 @@
|
|||||||
|
(node_children) @indent
|
||||||
|
|
||||||
|
"}" @outdent
|
@ -0,0 +1,27 @@
|
|||||||
|
(type (_) @test.inside) @test.around
|
||||||
|
|
||||||
|
(node
|
||||||
|
children: (node_children)? @class.inside) @class.around
|
||||||
|
|
||||||
|
(node
|
||||||
|
children: (node_children)? @function.inside) @function.around
|
||||||
|
|
||||||
|
(node (identifier) @function.movement)
|
||||||
|
|
||||||
|
[
|
||||||
|
(single_line_comment)
|
||||||
|
(multi_line_comment)
|
||||||
|
] @comment.inside
|
||||||
|
|
||||||
|
[
|
||||||
|
(single_line_comment)+
|
||||||
|
(multi_line_comment)+
|
||||||
|
] @comment.around
|
||||||
|
|
||||||
|
[
|
||||||
|
(prop)
|
||||||
|
(value)
|
||||||
|
] @parameter.inside
|
||||||
|
|
||||||
|
(value (type) ? (_) @parameter.inside @parameter.movement . ) @parameter.around
|
||||||
|
|
Loading…
Reference in New Issue