File tree Expand file tree Collapse file tree 2 files changed +36
-6
lines changed
packages/cursorless-engine/src/languages Expand file tree Collapse file tree 2 files changed +36
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import {
1111 cascadingMatcher ,
1212 createPatternMatchers ,
1313 matcher ,
14- patternMatcher ,
1514} from "../util/nodeMatchers" ;
1615
1716const COMMANDS = [
@@ -140,11 +139,6 @@ const nodeMatchers: Partial<
140139 matcher ( patternFinder ( ...COMMANDS , "begin" , "end" ) ) ,
141140 matcher ( patternFinder ( ...sectioningCommand ) , extendToNamedSiblingIfExists ) ,
142141 ) ,
143-
144- name : cascadingMatcher (
145- matcher ( patternFinder ( ...sectioningText ) , unwrapGroupParens ) ,
146- patternMatcher ( "begin[name][text]" , "end[name][text]" ) ,
147- ) ,
148142} ;
149143
150144export default createPatternMatchers ( nodeMatchers ) ;
Original file line number Diff line number Diff line change 5050 (begin) @collectionItem.iteration.start.endOf
5151 (end) @collectionItem.iteration.end.startOf
5252) @collectionItem.iteration.domain
53+
54+ ;; !! \section{foo bar}
55+ ;; ! ^^^^^^^
56+ (
57+ (_
58+ text: (_
59+ (_) @name
60+ ) @name.removal
61+ ) @name.domain
62+ (#type?
63+ @name.domain
64+ subparagraph
65+ paragraph
66+ subsubsection
67+ subsection
68+ section
69+ chapter
70+ part
71+ )
72+ )
73+
74+ ;; !! \begin{quote}
75+ ;; ! ^^^^^
76+ (begin
77+ name: (_
78+ text: (_) @name
79+ )
80+ ) @_.domain
81+
82+ ;; !! \end{quote}
83+ ;; ! ^^^^^
84+ (end
85+ name: (_
86+ text: (_) @name
87+ )
88+ ) @_.domain
You can’t perform that action at this time.
0 commit comments