File tree Expand file tree Collapse file tree 4 files changed +151
-153
lines changed
packages/cursorless-engine/src/languages Expand file tree Collapse file tree 4 files changed +151
-153
lines changed Original file line number Diff line number Diff line change 22 * The language IDs that we have full tree-sitter support for using our legacy
33 * modifiers.
44 */
5- export const legacyLanguageIds = [ "latex" , " rust"] as const ;
5+ export const legacyLanguageIds = [ "rust" ] as const ;
66
77export type LegacyLanguageId = ( typeof legacyLanguageIds ) [ number ] ;
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import type {
88} from "../typings/Types" ;
99import { notSupported } from "../util/nodeMatchers" ;
1010import { selectionWithEditorFromRange } from "../util/selectionUtils" ;
11- import latex from "./latex" ;
1211import type { LegacyLanguageId } from "./LegacyLanguageId" ;
1312import rust from "./rust" ;
1413
@@ -40,7 +39,6 @@ export const languageMatchers: Record<
4039 LegacyLanguageId ,
4140 Partial < Record < SimpleScopeTypeType , NodeMatcher > >
4241> = {
43- latex,
4442 rust,
4543} ;
4644
Load Diff This file was deleted.
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 @argumentOrParameter
60+ ) @_.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 @argumentOrParameter
79+ ) @_.removal
80+ ) @name.domain
81+
82+ ;; !! \end{quote}
83+ ;; ! ^^^^^
84+ (end
85+ name: (_
86+ text: (_) @name @argumentOrParameter
87+ ) @_.removal
88+ ) @name.domain
89+
90+ [
91+ (displayed_equation)
92+ (generic_command)
93+ (inline_formula)
94+ (block_comment)
95+ (package_include)
96+ (class_include)
97+ (latex_include)
98+ (biblatex_include)
99+ (bibtex_include)
100+ (graphics_include)
101+ (svg_include)
102+ (inkscape_include)
103+ (verbatim_include)
104+ (import_include)
105+ (caption)
106+ (citation)
107+ (label_definition)
108+ (label_reference)
109+ (label_reference_range)
110+ (label_number)
111+ (new_command_definition)
112+ (old_command_definition)
113+ (let_command_definition)
114+ (environment_definition)
115+ (glossary_entry_definition)
116+ (glossary_entry_reference)
117+ (acronym_definition)
118+ (acronym_reference)
119+ (theorem_definition)
120+ (color_definition)
121+ (color_set_definition)
122+ (color_reference)
123+ (tikz_library_import)
124+ (begin)
125+ (end)
126+ ] @functionCall @argumentOrParameter.iteration
127+
128+ (
129+ (_
130+ command: _ @functionCall.start @argumentOrParameter.iteration.start
131+ .
132+ (_)? @functionCall.end @argumentOrParameter.iteration.end
133+ ) @_dummy
134+ (#type?
135+ @_dummy
136+ subparagraph
137+ paragraph
138+ subsubsection
139+ subsection
140+ section
141+ chapter
142+ part
143+ )
144+ )
145+
146+ (
147+ (_
148+ [
149+ (curly_group)
150+ (curly_group_text)
151+ (curly_group_text_list)
152+ (curly_group_path)
153+ (curly_group_path_list)
154+ (curly_group_command_name)
155+ (curly_group_key_value)
156+ (curly_group_glob_pattern)
157+ (curly_group_impl)
158+ (brack_group)
159+ (brack_group_text)
160+ (brack_group_argc)
161+ (brack_group_key_value)
162+ ] @argumentOrParameter @_.removal
163+ ) @_dummy
164+ (#character-range! @argumentOrParameter 1 -1)
165+ (#type?
166+ @_dummy
167+ displayed_equation
168+ generic_command
169+ inline_formula
170+ math_set
171+ block_comment
172+ package_include
173+ class_include
174+ latex_include
175+ biblatex_include
176+ bibtex_include
177+ graphics_include
178+ svg_include
179+ inkscape_include
180+ verbatim_include
181+ import_include
182+ caption
183+ citation
184+ label_definition
185+ label_reference
186+ label_reference_range
187+ label_number
188+ new_command_definition
189+ old_command_definition
190+ let_command_definition
191+ environment_definition
192+ glossary_entry_definition
193+ glossary_entry_reference
194+ acronym_definition
195+ acronym_reference
196+ theorem_definition
197+ color_definition
198+ color_set_definition
199+ color_reference
200+ tikz_library_import
201+ )
202+ )
You can’t perform that action at this time.
0 commit comments