From 05136fdd25bf065f81ed20f74d402592a7c6e8f2 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 16 Apr 2024 15:38:24 +0630 Subject: Fixed examples for changes in lexer Name assigned to %CONST is the next symbol in stream, not the symbol attached to it. --- asm/lexer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'asm/lexer.cpp') diff --git a/asm/lexer.cpp b/asm/lexer.cpp index 991e551..e2efdfe 100644 --- a/asm/lexer.cpp +++ b/asm/lexer.cpp @@ -50,7 +50,7 @@ pair 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; } -- cgit v1.2.3-13-gbd6f