Skip to content

Commit

Permalink
Remove lexer / parser isDevVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Nov 18, 2024
1 parent 6a32cea commit c350403
Show file tree
Hide file tree
Showing 8 changed files with 1,700 additions and 1,735 deletions.
4 changes: 1 addition & 3 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,7 +208,6 @@ MINUS : '-';
ASTERISK : '*';
SLASH : '/';
PERCENT : '%';
EXPRESSION_COLON : {this.isDevVersion()}? COLON -> type(COLON);

NESTED_WHERE : WHERE -> type(WHERE);

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.

Large diffs are not rendered by default.

0 comments on commit c350403

Please sign in to comment.