mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
Fix //-style comments not working on last line
This commit is contained in:
@@ -96,6 +96,9 @@ namespace hex::lang {
|
||||
|
||||
const char& c = code[offset];
|
||||
|
||||
if (c == 0x00)
|
||||
break;
|
||||
|
||||
if (std::isblank(c) || std::isspace(c)) {
|
||||
offset += 1;
|
||||
} else if (c == ';') {
|
||||
|
||||
Reference in New Issue
Block a user