Skip to content

Commit e2ee82a

Browse files
Clojure scope migration (#2337)
## Checklist - [/] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [/] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet
1 parent a497f63 commit e2ee82a

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

packages/cursorless-engine/src/languages/clojure.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ const ifStatementMatcher = matcher(ifStatementFinder);
133133
const nodeMatchers: Partial<
134134
Record<SimpleScopeTypeType, NodeMatcherAlternative>
135135
> = {
136-
map: "map_lit",
137-
138136
collectionKey: matcher(mapParityNodeFinder(0)),
139137
collectionItem: cascadingMatcher(
140138
// Treat each key value pair as a single item if we're in a map
@@ -160,9 +158,6 @@ const nodeMatchers: Partial<
160158
),
161159
),
162160

163-
// A list is either a vector literal or a quoted list literal
164-
list: ["vec_lit", "quoting_lit.list_lit"],
165-
166161
functionCall: functionCallPattern,
167162
functionCallee: chainedMatcher([
168163
functionCallFinder,

queries/clojure.scm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
(comment) @comment @textFragment
22

33
(str_lit) @string @textFragment
4+
5+
(map_lit) @map
6+
7+
;; A list is either a vector literal or a quoted list literal
8+
(vec_lit) @list
9+
(quoting_lit
10+
(list_lit)
11+
) @list

0 commit comments

Comments
 (0)