BR 2760773: $$ tokens

The tokenizer didn't handle $$, but relied on token pasting of two $ tokens.
This broke after the improvements in 9bb46df4.
This commit is contained in:
Victor van den Elzen 2009-04-17 16:17:59 +02:00
parent 6125b62403
commit fb5f2519ad
4 changed files with 3 additions and 0 deletions

View File

@ -873,6 +873,9 @@ static Token *tokenize(char *line)
/* Handling unterminated strings by UNV */ /* Handling unterminated strings by UNV */
/* type = -1; */ /* type = -1; */
} }
} else if (p[0] == '$' && p[1] == '$') {
type = TOK_NUMBER;
p += 2;
} else if (isnumstart(*p)) { } else if (isnumstart(*p)) {
bool is_hex = false; bool is_hex = false;
bool is_float = false; bool is_float = false;

0
test/br890790.asm Executable file → Normal file
View File

0
test/br890790_i.asm Executable file → Normal file
View File

0
test/ifelse.asm Executable file → Normal file
View File