feat(fennel)!: switch to maintained parser (#6132)

Change the Fennel parser to a simpler and more consistent one, along with updating all the queries.
This commit is contained in:
Alexei Mozaidze 2024-02-21 17:44:01 +04:00 committed by GitHub
parent 71ae32c187
commit 7d1bab6546
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 398 additions and 107 deletions

View file

@ -1,11 +1,35 @@
[
(list)
(table)
(sequential_table)
(let)
(fn)
(let_clause)
(quoted_list)
(local)
(global)
(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)