mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +02: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…
Reference in a new issue