Correctly recognize $$ as TOKEN_BASE

This commit is contained in:
H. Peter Anvin 2002-05-30 21:30:33 +00:00
parent 585d422f14
commit 7cf897e7ae

View File

@ -1096,7 +1096,7 @@ ppscan(void *private_data, struct tokenval *tokval)
if (tline->text[0] == '$' && !tline->text[1])
return tokval->t_type = TOKEN_HERE;
if (tline->text[0] == '$' && tline->text[1] == '$' && !tline->text[1])
if (tline->text[0] == '$' && tline->text[1] == '$' && !tline->text[2])
return tokval->t_type = TOKEN_BASE;
if (tline->type == TOK_ID)