nvim-treesitter/queries/fennel/folds.scm
Alexei Mozaidze 7d1bab6546
feat(fennel)!: switch to maintained parser (#6132)
Change the Fennel parser to a simpler and more consistent one, along with updating all the queries.
2024-02-21 13:44:01 +00:00

35 lines
409 B
Scheme

[
(list)
(table)
(sequence)
] @fold
(list
.
(symbol) @_let
(#eq? @_let "let")
.
(sequence) @fold) @fold
(list
.
(symbol) @_local
(#eq? @_local "local")) @fold
(list
.
(symbol) @_global
(#eq? @_global "global")) @fold
(list
.
(symbol) @_fn
(#any-of? @_fn "fn" "lambda" "λ" "hashfn")) @fold
(reader_macro
macro:
[
"'"
"`"
]
expression: (_) @fold)