feat(gap): add gap and gaptst parser and queries (#7110)

This commit is contained in:
Reinis Cirpons 2024-09-01 21:13:10 +01:00 committed by GitHub
parent 4e47268c6d
commit 2d8f0f37c4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 326 additions and 0 deletions

7
queries/gaptst/folds.scm Normal file
View file

@ -0,0 +1,7 @@
[
(if_statement)
(else_clause)
(local_statement)
(exec_statement)
(test_case)
] @fold

View file

@ -0,0 +1,19 @@
(output_line) @markup.raw.block
[
"#@local"
"#@exec"
] @keyword
[
"gap> "
"> "
] @keyword.debug
[
"#@if"
"#@else"
"#@fi"
] @keyword.conditional
(comment) @comment @spell

View 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))