mirror of
https://github.com/curioustorvald/Terrarum-sans-bitmap.git
synced 2026-03-07 20:01:52 +09:00
fix: tokeniser fails on the line starts with indentation then colour codes
This commit is contained in:
@@ -711,11 +711,16 @@ class MovableType(
|
|||||||
val c0 = it
|
val c0 = it
|
||||||
|
|
||||||
if (c0.isColourCode()) {
|
if (c0.isColourCode()) {
|
||||||
|
if (glue != 0)
|
||||||
|
sendoutGlue()
|
||||||
|
|
||||||
colourCode = c0
|
colourCode = c0
|
||||||
appendToBuffer(c0)
|
appendToBuffer(c0)
|
||||||
}
|
}
|
||||||
else if (c0 == 0x100000) {
|
else if (c0 == 0x100000) {
|
||||||
colourCodeRemovalRequested = true
|
colourCodeRemovalRequested = true
|
||||||
|
if (glue != 0)
|
||||||
|
sendoutGlue()
|
||||||
appendToBuffer(c0)
|
appendToBuffer(c0)
|
||||||
}
|
}
|
||||||
else if (c0.isControlIn()) {
|
else if (c0.isControlIn()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user