Skip to content

Commit

Permalink
Optimize performance
Browse files Browse the repository at this point in the history
  • Loading branch information
lafriks committed Oct 21, 2021
1 parent 6a11317 commit 770a9b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (p *Parser) parseOperator(c context.Context, stack *stageStack, eval Evalua
mustOp := false
if p.isSymbolOperation(scan) {
scan = p.Peek()
for p.isOperatorPrefix(op+string(scan)) && p.isSymbolOperation(scan) {
for p.isSymbolOperation(scan) && p.isOperatorPrefix(op+string(scan)) {
mustOp = true
op += string(scan)
p.Next()
Expand Down

0 comments on commit 770a9b8

Please sign in to comment.