Avoid softlock if linker script contains a comment but no newline

This commit is contained in:
ISSOtm
2024-08-14 03:01:09 +02:00
committed by Eldred Habert
parent 47b2e0e912
commit 369296693c

View File

@@ -241,7 +241,7 @@ yy::parser::symbol_type yylex() {
} }
// Then, skip a comment if applicable. // Then, skip a comment if applicable.
if (c == ';') { if (c == ';') {
while (!isNewline(c)) { while (c != EOF && !isNewline(c)) {
c = context.file.sbumpc(); c = context.file.sbumpc();
} }
} }