diff options
Diffstat (limited to 'runtime/queries/gaptst')
| -rw-r--r-- | runtime/queries/gaptst/folds.scm | 7 | ||||
| -rw-r--r-- | runtime/queries/gaptst/highlights.scm | 19 | ||||
| -rw-r--r-- | runtime/queries/gaptst/injections.scm | 9 |
3 files changed, 35 insertions, 0 deletions
diff --git a/runtime/queries/gaptst/folds.scm b/runtime/queries/gaptst/folds.scm new file mode 100644 index 000000000..0ec72d135 --- /dev/null +++ b/runtime/queries/gaptst/folds.scm @@ -0,0 +1,7 @@ +[ + (if_statement) + (else_clause) + (local_statement) + (exec_statement) + (test_case) +] @fold diff --git a/runtime/queries/gaptst/highlights.scm b/runtime/queries/gaptst/highlights.scm new file mode 100644 index 000000000..22ab2d0a0 --- /dev/null +++ b/runtime/queries/gaptst/highlights.scm @@ -0,0 +1,19 @@ +(output_line) @markup.raw.block + +[ + "#@local" + "#@exec" +] @keyword + +[ + "gap> " + "> " +] @keyword.debug + +[ + "#@if" + "#@else" + "#@fi" +] @keyword.conditional + +(comment) @comment @spell diff --git a/runtime/queries/gaptst/injections.scm b/runtime/queries/gaptst/injections.scm new file mode 100644 index 000000000..bdcba35dc --- /dev/null +++ b/runtime/queries/gaptst/injections.scm @@ -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)) |
