Skip to content

Commit

Permalink
fix: LogicalOperator parse error
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Sep 11, 2023
1 parent ba3550e commit 7bc1dfe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ internal object ParserSet {
when (source[i]) {
'(' -> {
if (parserResults.isNotEmpty()) {
val lastToken = parserResults.first()
val lastToken = parserResults.last()
if (lastToken.data !is LogicalOperator) {
var count = 0
while (i - 1 >= count && source[i - 1 - count] in whiteCharParser.prefix) {
Expand Down

0 comments on commit 7bc1dfe

Please sign in to comment.