Fix //-style comments not working on last line

This commit is contained in:
WerWolv 2020-11-16 22:54:54 +01:00
parent c863b2f65b
commit b28d45df8a
1 changed files with 3 additions and 0 deletions

View File

@ -96,6 +96,9 @@ namespace hex::lang {
const char& c = code[offset]; const char& c = code[offset];
if (c == 0x00)
break;
if (std::isblank(c) || std::isspace(c)) { if (std::isblank(c) || std::isspace(c)) {
offset += 1; offset += 1;
} else if (c == ';') { } else if (c == ';') {