Skip to content

Commit

Permalink
Switch to maxlookahead
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHelmuth committed Nov 3, 2022
1 parent 30e3ecc commit de58231
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ottl/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func newParser[G any]() *participle.Parser[G] {
participle.Lexer(lex),
participle.Unquote("String"),
participle.Elide("whitespace"),
participle.UseLookahead(-1),
participle.UseLookahead(participle.MaxLookahead),
)
if err != nil {
panic("Unable to initialize parser; this is a programming error in the transformprocessor:" + err.Error())
Expand Down

0 comments on commit de58231

Please sign in to comment.