Fix lexer calculing hex number length 1 too long

This commit is contained in:
Jan committed 2021-02-14 10:24:23 +01:00
1 parent e40f1ec0b7
commit e277de4517
2 files changed
+20 -1

No files matched your search

@@ -177,7 +177,7 @@ protected:
if (numberLength == 0 || isalnum(*end) || *end == '_')
throw ParsingException(GetPreviousCharacterPos(), "Invalid hex number");
m_current_line_offset += numberLength;
m_current_line_offset += numberLength - 1;
}
_NODISCARD bool IsIntegerNumber() const