Skip to content

Commit 6990e6e

Browse files
committed
feat: support tabs
1 parent 5fc33b1 commit 6990e6e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/kotlin/com/github/xepozz/toon/language/parser/IndentingLexerAdapter.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@ abstract class IndentingLexerAdapter(
5050
columns++
5151
index++
5252
}
53+
'\t' -> {
54+
columns+=2
55+
index+=2
56+
}
5357

5458
'\r', '\n' -> return
5559
else -> break

0 commit comments

Comments
 (0)