File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/kotlin/com/github/xepozz/toon/language/parser Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ abstract class IndentingLexerAdapter(
1919 val endOffset = baseLexer.tokenEnd
2020// println("compensation last: ${indentStack.size}, offset: $endOffset")
2121 while (indentStack.size > 1 ) {
22- indentStack.removeLast( )
22+ indentStack.remove(indentStack.size - 1 )
2323 addToken(endOffset, dedentTokenType)
2424// println("tokenType(emulate): $dedentTokenType")
2525 }
@@ -83,7 +83,7 @@ abstract class IndentingLexerAdapter(
8383 newIndent < currentIndent -> {
8484// println("compensation in process: ${indentStack.size}, offset: $logicalLineStart")
8585 while (indentStack.size > 1 && newIndent < indentStack.last()) {
86- indentStack.removeLast( )
86+ indentStack.remove(indentStack.size - 1 )
8787 addToken(logicalLineStart, dedentTokenType)
8888// println("tokenType(emulate): $dedentTokenType")
8989 }
You can’t perform that action at this time.
0 commit comments