Fix lexer calculing hex number length 1 too long

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

View File

@ -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