Skip to content

Commit f0e1184

Browse files
committed
Fix release test problems by making COLON be dev version dependant just for expressions
1 parent 1875fef commit f0e1184

File tree

9 files changed

+1390
-1378
lines changed

9 files changed

+1390
-1378
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ WS
105105
: [ \r\n\t]+ -> channel(HIDDEN)
106106
;
107107

108+
COLON : ':';
109+
108110
//
109111
// Expression - used by most command
110112
//
@@ -207,7 +209,7 @@ MINUS : '-';
207209
ASTERISK : '*';
208210
SLASH : '/';
209211
PERCENT : '%';
210-
COLON : {this.isDevVersion()}? ':';
212+
EXPRESSION_COLON : {this.isDevVersion()}? COLON -> type(COLON);
211213

212214
NESTED_WHERE : WHERE -> type(WHERE);
213215

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

Lines changed: 77 additions & 76 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: 77 additions & 76 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)