@@ -166,8 +166,6 @@ QueryRef QueryParser::doParse() {
166
166
.Case (" " , ParsedQueryKind::NoOp)
167
167
.Case (" #" , ParsedQueryKind::Comment, /* isCompletion=*/ false )
168
168
.Case (" help" , ParsedQueryKind::Help)
169
- .Case (" l" , ParsedQueryKind::Let, /* isCompletion=*/ false )
170
- .Case (" let" , ParsedQueryKind::Let, /* isCompletion=*/ false )
171
169
.Case (" m" , ParsedQueryKind::Match, /* isCompletion=*/ false )
172
170
.Case (" set" , ParsedQueryKind::Set)
173
171
.Case (" match" , ParsedQueryKind::Match)
@@ -189,28 +187,6 @@ QueryRef QueryParser::doParse() {
189
187
190
188
case ParsedQueryKind::Quit:
191
189
return endQuery (new QuitQuery);
192
-
193
- case ParsedQueryKind::Let: {
194
- llvm::StringRef name = lexWord ();
195
-
196
- if (name.empty ()) {
197
- return new InvalidQuery (" expected variable name" );
198
- }
199
-
200
- if (completionPos) {
201
- return completeMatcherExpression ();
202
- }
203
-
204
- matcher::internal::Diagnostics diag;
205
- matcher::VariantValue value;
206
- if (!matcher::internal::Parser::parseExpression (
207
- line, qs.getRegistryData (), &qs.namedValues , &value, &diag)) {
208
- return makeInvalidQueryFromDiagnostics (diag);
209
- }
210
- QueryRef query = new LetQuery (name, value);
211
- query->remainingContent = line;
212
- return query;
213
- }
214
190
case ParsedQueryKind::Match: {
215
191
if (completionPos) {
216
192
return completeMatcherExpression ();
0 commit comments