(helper) ignore last trailing line for string blocks

This commit is contained in:
Valentyne Stigloher 2025-06-23 15:53:08 +02:00
parent 500dd5c04f
commit c61076ad6b

View File

@ -220,6 +220,9 @@ class Parser {
return false;
}
const currentLine = this.lines[this.currentLineNumber];
if (this.currentLineNumber === this.lines.length - 1) {
return currentLine.trim().length !== 0;
}
return currentLine.startsWith(' '.repeat(4 * this.currentIndent)) || currentLine.trim().length === 0;
}