Fixed examples for changes in lexer

Name assigned to %CONST is the next symbol in stream, not the symbol
attached to it.
This commit is contained in:
2024-04-16 15:38:24 +06:30
parent 1e7f1bdee9
commit 05136fdd25
3 changed files with 7 additions and 7 deletions

View File

@@ -50,7 +50,7 @@ pair<token_t, lerr_t> tokenise_symbol(string_view &source, size_t &column,
token_t t{};
if (initial_match(sym, "%CONST"))
if (sym == "%CONST")
{
t.type = token_type_t::PP_CONST;
}