Using new lexer by alecthomas! (#1270)

This commit is contained in:
Mike Farah
2022-07-13 14:45:28 +10:00
committed by GitHub
parent f393cf37c2
commit 03ba38eaff
10 changed files with 1239 additions and 701 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ func (p *expressionPostFixerImpl) ConvertToPostfix(infixTokens []*token) ([]*Ope
// on the close op - move it to the traverse array op
// allows for .["cat"]?
prefs := traversePreferences{}
closeTokenMatch := string(currentToken.Match.Bytes)
closeTokenMatch := currentToken.Match
if closeTokenMatch[len(closeTokenMatch)-1:] == "?" {
prefs.OptionalTraverse = true
}