diff options
Diffstat (limited to 'asm')
-rw-r--r-- | asm/lexer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/asm/lexer.cpp b/asm/lexer.cpp index e463b7c..7529eaf 100644 --- a/asm/lexer.cpp +++ b/asm/lexer.cpp @@ -403,6 +403,12 @@ lerr_t tokenise_buffer(string_view source, std::vector<token_t *> &tokens) if (lerr.type != lerr_type_t::OK) return lerr; } + else + { + ++column; + return lerr_t{lerr_type_t::UNKNOWN_CHAR, column, line}; + } + if (is_token) { t.line = line; |