Skip to content

Commit

Permalink
Update LiquidParser.g4
Browse files Browse the repository at this point in the history
  • Loading branch information
bkiers authored Oct 14, 2024
1 parent 2312fa4 commit 2b8b615
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/antlr4/liquid/parser/v4/LiquidParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,8 @@ output
// The input from https://github.com/bkiers/Liqp/issues/310 is tested by parsing it 100 times. When this rule contains
// `( ~OutEnd )+`, it ran in about 8000-8500 ms on average. With the individual tokens specified in the `IN_TAG` mode,
// the average runtime was around 3000-3200 ms.
//
// All tokens in the `IN_TAG` mode _except_ the `OutEnd` token
not_out_end
: ( TagEnd | OutStart2 | Str | DotDot | Dot | NEq | Eq | EqSign | GtEq | Gt | LtEq | Lt | Minus | Pipe
| Col | Comma | OPar | CPar | OBr | CBr | QMark | PathSep | DoubleNum | LongNum | Contains | In | And
Expand Down Expand Up @@ -340,6 +342,7 @@ other_tag_parameters
: other_than_tag_end
;

// All tokens in the `IN_TAG` mode _except_ the `TagEnd` token
other_than_tag_end
: ( OutEnd | OutStart2 | Str | DotDot | Dot | NEq | Eq | EqSign | GtEq | Gt | LtEq | Lt | Minus | Pipe
| Col | Comma | OPar | CPar | OBr | CBr | QMark | PathSep | DoubleNum | LongNum | Contains | In | And
Expand Down

0 comments on commit 2b8b615

Please sign in to comment.