(yylex): Don't allow @ in identifier outside of Objective C.
From-SVN: r3163
This commit is contained in:
parent
10055ae243
commit
8355fc27ae
@ -1096,11 +1096,15 @@ yylex ()
|
||||
p = token_buffer;
|
||||
while (isalnum (c) || c == '_' || c == '$' || c == '@')
|
||||
{
|
||||
if (p >= token_buffer + maxtoken)
|
||||
p = extend_token_buffer (p);
|
||||
/* Make sure this char really belongs in an identifier. */
|
||||
if (c == '@' && ! doing_objc_thang)
|
||||
break;
|
||||
if (c == '$' && ! dollars_in_ident)
|
||||
break;
|
||||
|
||||
if (p >= token_buffer + maxtoken)
|
||||
p = extend_token_buffer (p);
|
||||
|
||||
*p++ = c;
|
||||
c = getc (finput);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user