tree-sitter-tiger/queries/folds.scm
Bruno BELANYI 2bd24cceb4 Add folds
Unfortunately it seems like this is not really testable with the
'tree-sitter' tooling.

If I want to check that this is working correctly, I should explore how
to make use of, e.g., neovim to automate testing.
2022-06-04 10:43:35 +02:00

19 lines
278 B
Scheme

[
(array_expression)
(record_expression)
(sequence_expression)
(if_expression)
(while_expression)
(for_expression)
(let_expression)
(function_declaration)
(primitive_declaration)
] @fold
[
(comment)
(string_literal)
] @ignore
; vim: sw=2 foldmethod=marker