Skip to content

Commit

Permalink
Lexer: remove redundant case for ?.
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Feb 3, 2023
1 parent 41d3e40 commit 4c29199
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/lexer/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func root(l *lexer) stateFn {
l.emit(Bracket)
case strings.ContainsRune(")]}", r):
l.emit(Bracket)
case strings.ContainsRune("#,?:%+-^", r): // single rune operator
case strings.ContainsRune("#,:%+-^", r): // single rune operator
l.emit(Operator)
case strings.ContainsRune("&|!=*<>", r): // possible double rune operator
l.accept("&|=*")
Expand Down

0 comments on commit 4c29199

Please sign in to comment.