mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 12:20:02 -04:00
feat(elm): add folds queries
This commit is contained in:
parent
6cd4ce6cab
commit
0209151fd2
1 changed files with 14 additions and 0 deletions
14
queries/elm/folds.scm
Normal file
14
queries/elm/folds.scm
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
((function_call_expr) @_fn
|
||||||
|
(#not-has-parent? @_fn parenthesized_expr)) @fold
|
||||||
|
|
||||||
|
[
|
||||||
|
(case_of_branch)
|
||||||
|
(case_of_expr)
|
||||||
|
(value_declaration)
|
||||||
|
(type_declaration)
|
||||||
|
(type_alias_declaration)
|
||||||
|
(list_expr)
|
||||||
|
(record_expr)
|
||||||
|
(parenthesized_expr)
|
||||||
|
(import_clause)+
|
||||||
|
] @fold
|
||||||
Loading…
Add table
Add a link
Reference in a new issue