mirror of https://github.com/helix-editor/helix
Add pest support (#10616)
Support [pest-parser](https://github.com/pest-parser) - [pest-language-server](https://github.com/pest-parser/pest-ide-tools) - [tree-sitter-pest](https://github.com/pest-parser/tree-sitter-pest) close #7878pull/10636/head
parent
ec224798e7
commit
724a96abc8
@ -0,0 +1,49 @@
|
|||||||
|
(line_comment) @comment
|
||||||
|
(block_comment) @comment
|
||||||
|
|
||||||
|
[
|
||||||
|
"("
|
||||||
|
")"
|
||||||
|
"["
|
||||||
|
"]"
|
||||||
|
"{"
|
||||||
|
"}"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
((identifier) @variable)
|
||||||
|
((builtin) @type.builtin)
|
||||||
|
((const) @constant)
|
||||||
|
|
||||||
|
[
|
||||||
|
(string)
|
||||||
|
(character)
|
||||||
|
] @string
|
||||||
|
|
||||||
|
[
|
||||||
|
"_"
|
||||||
|
"@"
|
||||||
|
"$"
|
||||||
|
]@keyword.storage.modifier
|
||||||
|
|
||||||
|
[
|
||||||
|
"~"
|
||||||
|
"|"
|
||||||
|
"="
|
||||||
|
"+"
|
||||||
|
"*"
|
||||||
|
"&"
|
||||||
|
"^"
|
||||||
|
"!"
|
||||||
|
"?"
|
||||||
|
".."
|
||||||
|
] @operator
|
||||||
|
|
||||||
|
[
|
||||||
|
"PUSH"
|
||||||
|
"PEEK"
|
||||||
|
"POP"
|
||||||
|
"SOI"
|
||||||
|
"EOI"
|
||||||
|
"ANY"
|
||||||
|
] @keyword
|
||||||
|
|
@ -0,0 +1,9 @@
|
|||||||
|
[
|
||||||
|
(expression)
|
||||||
|
] @indent
|
||||||
|
|
||||||
|
[
|
||||||
|
"]"
|
||||||
|
"}"
|
||||||
|
")"
|
||||||
|
] @outdent
|
@ -0,0 +1,7 @@
|
|||||||
|
((line_comment) @injection.content
|
||||||
|
(#set! injection.language "comment")
|
||||||
|
(#set! injection.include-children))
|
||||||
|
|
||||||
|
((block_comment) @injection.content
|
||||||
|
(#set! injection.language "comment")
|
||||||
|
(#set! injection.include-children))
|
@ -0,0 +1,8 @@
|
|||||||
|
(grammar_rule (_) @class.inside) @class.around
|
||||||
|
(term (_) @entry.inside) @entry.around
|
||||||
|
|
||||||
|
(line_comment) @comment.inside
|
||||||
|
(line_comment)+ @comment.around
|
||||||
|
|
||||||
|
(block_comment) @comment.inside
|
||||||
|
(block_comment)+ @comment.around
|
Loading…
Reference in New Issue