Skip to content

Commit 4e17324

Browse files
committed
Reorder the Lexer tokens.
1 parent 5ab46d9 commit 4e17324

File tree

7 files changed

+770
-768
lines changed

7 files changed

+770
-768
lines changed

x-pack/plugin/esql/src/main/antlr/EsqlBaseLexer.tokens

Lines changed: 50 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/antlr/EsqlBaseParser.tokens

Lines changed: 50 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

x-pack/plugin/esql/src/main/antlr/lexer/Expression.g4

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,12 @@ DECIMAL_LITERAL
8383
| DOT DIGIT+ EXPONENT
8484
;
8585

86-
BY : 'by';
87-
ON: 'on';
88-
WITH: 'with';
89-
AS: 'as';
9086

9187
AND : 'and';
88+
AS: 'as';
9289
ASC : 'asc';
9390
ASSIGN : '=';
91+
BY : 'by';
9492
CAST_OP : '::';
9593
COLON : ':';
9694
COMMA : ',';
@@ -105,10 +103,12 @@ LIKE: 'like';
105103
NOT : 'not';
106104
NULL : 'null';
107105
NULLS : 'nulls';
106+
ON: 'on';
108107
OR : 'or';
109108
PARAM: '?';
110109
RLIKE: 'rlike';
111110
TRUE : 'true';
111+
WITH: 'with';
112112

113113
EQ : '==';
114114
CIEQ : '=~';

x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseLexer.interp

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)