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.
This commit is contained in:
parent
9214ca7c35
commit
2bd24cceb4
18
queries/folds.scm
Normal file
18
queries/folds.scm
Normal file
|
@ -0,0 +1,18 @@
|
|||
[
|
||||
(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
|
Loading…
Reference in a new issue