fix(fennel): update queries

Updated the queries to support the updated upstream parser. Also, simplified queries significantly.
This commit is contained in:
Alexei Mozaidze 2024-04-29 13:34:16 +04:00
parent 7ef0766b5c
commit 2279491726

View file

@ -1,16 +1,3 @@
(list
"(" @delimiter
")" @delimiter @sentinel) @container
(sequence
"[" @delimiter
"]" @delimiter @sentinel) @container
(table
"{" @delimiter
;; NOTE: see example file for usecase
;; item:
;; (table_pair
;; key: (symbol) @delimiter @_colon
;; (#eq? @_colon ":"))*
"}" @delimiter @sentinel) @container
(_
open: ["(" "[" "{"] @delimiter
close: [")" "]" "}"] @delimiter @sentinel) @container