mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
feat(gap): add gap and gaptst parser and queries (#7110)
This commit is contained in:
parent
4e47268c6d
commit
2d8f0f37c4
10 changed files with 326 additions and 0 deletions
7
queries/gaptst/folds.scm
Normal file
7
queries/gaptst/folds.scm
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
[
|
||||
(if_statement)
|
||||
(else_clause)
|
||||
(local_statement)
|
||||
(exec_statement)
|
||||
(test_case)
|
||||
] @fold
|
||||
19
queries/gaptst/highlights.scm
Normal file
19
queries/gaptst/highlights.scm
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
(output_line) @markup.raw.block
|
||||
|
||||
[
|
||||
"#@local"
|
||||
"#@exec"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"gap> "
|
||||
"> "
|
||||
] @keyword.debug
|
||||
|
||||
[
|
||||
"#@if"
|
||||
"#@else"
|
||||
"#@fi"
|
||||
] @keyword.conditional
|
||||
|
||||
(comment) @comment @spell
|
||||
9
queries/gaptst/injections.scm
Normal file
9
queries/gaptst/injections.scm
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((gap_expression) @injection.content
|
||||
(#set! injection.language "gap"))
|
||||
|
||||
((input_line) @injection.content
|
||||
(#set! injection.language "gap")
|
||||
(#set! injection.combined))
|
||||
Loading…
Add table
Add a link
Reference in a new issue