diff --git a/packages/cursorless-engine/src/languages/clojure.ts b/packages/cursorless-engine/src/languages/clojure.ts index 88ab2dbe9a..e363d45ebd 100644 --- a/packages/cursorless-engine/src/languages/clojure.ts +++ b/packages/cursorless-engine/src/languages/clojure.ts @@ -133,8 +133,6 @@ const ifStatementMatcher = matcher(ifStatementFinder); const nodeMatchers: Partial< Record > = { - map: "map_lit", - collectionKey: matcher(mapParityNodeFinder(0)), collectionItem: cascadingMatcher( // Treat each key value pair as a single item if we're in a map @@ -160,9 +158,6 @@ const nodeMatchers: Partial< ), ), - // A list is either a vector literal or a quoted list literal - list: ["vec_lit", "quoting_lit.list_lit"], - functionCall: functionCallPattern, functionCallee: chainedMatcher([ functionCallFinder, diff --git a/queries/clojure.scm b/queries/clojure.scm index a072a0b01d..d405a55677 100644 --- a/queries/clojure.scm +++ b/queries/clojure.scm @@ -1,3 +1,11 @@ (comment) @comment @textFragment (str_lit) @string @textFragment + +(map_lit) @map + +;; A list is either a vector literal or a quoted list literal +(vec_lit) @list +(quoting_lit + (list_lit) +) @list