mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-01-18 16:25:05 +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--;
|
p--;
|
||||||
if (*p)
|
if (*p)
|
||||||
*p++ = '\0';
|
*p++ = '\0';
|
||||||
|
if (lvl)
|
||||||
|
error(ERR_NONFATAL, "unterminated %[ construct");
|
||||||
type = TOK_INDIRECT;
|
type = TOK_INDIRECT;
|
||||||
} else if (*p == '?') {
|
} else if (*p == '?') {
|
||||||
type = TOK_PREPROC_Q; /* %? */
|
type = TOK_PREPROC_Q; /* %? */
|
||||||
|
Loading…
Reference in New Issue
Block a user