mirror of
https://github.com/gkd-kit/gkd.git
synced 2024-11-16 03:32:38 +08:00
fix: LogicalOperator parse error
This commit is contained in:
parent
ba3550e1bb
commit
7bc1dfe9d9
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user