Skip to content

Commit

Permalink
Remove isDevVersion from lexer / parser
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Nov 14, 2024
1 parent 994268b commit 807649f
Show file tree
Hide file tree
Showing 8 changed files with 1,502 additions and 1,524 deletions.
5 changes: 1 addition & 4 deletions x-pack/plugin/esql/src/main/antlr/EsqlBaseLexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ WS
: [ \r\n\t]+ -> channel(HIDDEN)
;

COLON : ':';

//
// Expression - used by most command
//
Expand Down Expand Up @@ -177,6 +175,7 @@ AND : 'and';
ASC : 'asc';
ASSIGN : '=';
CAST_OP : '::';
COLON : ':';
COMMA : ',';
DESC : 'desc';
DOT : '.';
Expand Down Expand Up @@ -209,8 +208,6 @@ MINUS : '-';
ASTERISK : '*';
SLASH : '/';
PERCENT : '%';
EXPRESSION_COLON : {this.isDevVersion()}? COLON -> type(COLON);

NESTED_WHERE : WHERE -> type(WHERE);

NAMED_OR_POSITIONAL_PARAM
Expand Down
34 changes: 17 additions & 17 deletions x-pack/plugin/esql/src/main/antlr/EsqlBaseLexer.tokens

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion x-pack/plugin/esql/src/main/antlr/EsqlBaseParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ booleanExpression
| left=booleanExpression operator=OR right=booleanExpression #logicalBinary
| valueExpression (NOT)? IN LP valueExpression (COMMA valueExpression)* RP #logicalIn
| valueExpression IS NOT? NULL #isNull
| {this.isDevVersion()}? matchBooleanExpression #matchExpression
| matchBooleanExpression #matchExpression
;

regexBooleanExpression
Expand Down
34 changes: 17 additions & 17 deletions x-pack/plugin/esql/src/main/antlr/EsqlBaseParser.tokens

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit 807649f

Please sign in to comment.