.rept asm directive

and '.' alone is a token now in *.S (not an identifier)
    representing a current position in the code (PC).
This commit is contained in:
seyko
2016-04-22 18:29:56 +03:00
parent edcb15c31f
commit 1f49441a27
3 changed files with 41 additions and 1 deletions

View File

@ -2784,7 +2784,8 @@ maybe_newline:
cstr_reset(&tokcstr);
cstr_ccat(&tokcstr, '.');
goto parse_num;
} else if (parse_flags & PARSE_FLAG_ASM_FILE) {
} else if ((parse_flags & PARSE_FLAG_ASM_FILE)
&& (isidnum_table[c - CH_EOF] & (IS_ID|IS_NUM))) {
*--p = c = '.';
goto parse_ident_fast;
} else if (c == '.') {