Skip to content

Commit 4c29199

Browse files
committed
Lexer: remove redundant case for ?.
1 parent 41d3e40 commit 4c29199

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser/lexer/state.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func root(l *lexer) stateFn {
3232
l.emit(Bracket)
3333
case strings.ContainsRune(")]}", r):
3434
l.emit(Bracket)
35-
case strings.ContainsRune("#,?:%+-^", r): // single rune operator
35+
case strings.ContainsRune("#,:%+-^", r): // single rune operator
3636
l.emit(Operator)
3737
case strings.ContainsRune("&|!=*<>", r): // possible double rune operator
3838
l.accept("&|=*")

0 commit comments

Comments
 (0)