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
1 changed files with 18 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue