File tree Expand file tree Collapse file tree
packages/cursorless-engine/src/languages Expand file tree Collapse file tree Original file line number Diff line number Diff 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])
Original file line number Diff line number Diff line change 101101 return_type: (_) @type
102102) @_.domain
103103
104+ ;; !! case 0 => "zero"
105+ ;; ! ^^^^^^^^^^^^^^^^
106+ (
107+ (case_clause) @branch
108+ (#trim-end! @branch )
109+ )
110+
104111operator: (operator_identifier) @disqualifyDelimiter
105112(enumerator
106113 "<-" @disqualifyDelimiter
You can’t perform that action at this time.
0 commit comments