Skip to content

Commit 03f17b8

Browse files
Migrate branch
1 parent 254f630 commit 03f17b8

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ const nodeMatchers: Partial<
1818
"class_parameters",
1919
"bindings",
2020
),
21-
branch: matcher(
22-
patternFinder("case_clause"),
23-
childRangeSelector([], [], {
24-
includeUnnamedChildren: true,
25-
}),
26-
),
21+
// branch: matcher(
22+
// patternFinder("case_clause"),
23+
// childRangeSelector([], [], {
24+
// includeUnnamedChildren: true,
25+
// }),
26+
// ),
2727

2828
// *[type] does not work here because while we want most of these we don't want "compound" types,
2929
// // eg `generic_type[type]`, because that will grab just the inner generic (the String of List[String])

queries/scala.scm

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,13 @@
101101
return_type: (_) @type
102102
) @_.domain
103103

104+
;;!! case 0 => "zero"
105+
;;! ^^^^^^^^^^^^^^^^
106+
(
107+
(case_clause) @branch
108+
(#trim-end! @branch)
109+
)
110+
104111
operator: (operator_identifier) @disqualifyDelimiter
105112
(enumerator
106113
"<-" @disqualifyDelimiter

0 commit comments

Comments
 (0)