mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-12 18:40:23 +08:00
preproc: error on unterminated %[...]
Make unterminated %[...] constructs an error. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
ec03301eb4
commit
e126581f4d
@ -831,6 +831,8 @@ static Token *tokenize(char *line)
|
||||
p--;
|
||||
if (*p)
|
||||
*p++ = '\0';
|
||||
if (lvl)
|
||||
error(ERR_NONFATAL, "unterminated %[ construct");
|
||||
type = TOK_INDIRECT;
|
||||
} else if (*p == '?') {
|
||||
type = TOK_PREPROC_Q; /* %? */
|
||||
|
Loading…
x
Reference in New Issue
Block a user