summaryrefslogtreecommitdiff
path: root/queries
diff options
context:
space:
mode:
authorStephan Seitz <stephan.seitz@fau.de>2022-04-01 09:46:03 +0200
committerStephan Seitz <stephan.seitz@fau.de>2022-04-01 16:58:05 +0200
commit4b9aec69bdca88707631614ba30a1ed052ff7369 (patch)
tree4982610714a73d6182217426e821ca34041c6506 /queries
parent8a5e5ca27a14f4aabe1ba2d88cd2974c59418d5d (diff)
highlights(fennel): fix "collect" "icollect" "accumulate"
They are now anonymous nodes. Fixes #2707
Diffstat (limited to 'queries')
-rw-r--r--queries/fennel/highlights.scm10
1 files changed, 8 insertions, 2 deletions
diff --git a/queries/fennel/highlights.scm b/queries/fennel/highlights.scm
index 48a33990..7322e55c 100644
--- a/queries/fennel/highlights.scm
+++ b/queries/fennel/highlights.scm
@@ -93,10 +93,16 @@
(#any-of? @include
"require" "require-macros" "import-macros" "include"))
+[
+ "collect"
+ "icollect"
+ "accumulate"
+] @function.macro
+
((symbol) @function.macro
(#any-of? @function.macro
- "->" "->>" "-?>" "-?>>" "?." "accumulate" "collect" "doto" "icollect"
- "macro" "macrodebug" "partial" "pick-args" "pick-values" "with-open"))
+ "->" "->>" "-?>" "-?>>" "?." "doto" "macro" "macrodebug" "partial" "pick-args"
+ "pick-values" "with-open"))
; Lua builtins
((symbol) @constant.builtin