Commit 8355fc27 by Richard Stallman

(yylex): Don't allow @ in identifier outside of Objective C.

From-SVN: r3163
parent 10055ae2
...@@ -1096,11 +1096,15 @@ yylex () ...@@ -1096,11 +1096,15 @@ yylex ()
p = token_buffer; p = token_buffer;
while (isalnum (c) || c == '_' || c == '$' || c == '@') while (isalnum (c) || c == '_' || c == '$' || c == '@')
{ {
if (p >= token_buffer + maxtoken) /* Make sure this char really belongs in an identifier. */
p = extend_token_buffer (p); if (c == '@' && ! doing_objc_thang)
break;
if (c == '$' && ! dollars_in_ident) if (c == '$' && ! dollars_in_ident)
break; break;
if (p >= token_buffer + maxtoken)
p = extend_token_buffer (p);
*p++ = c; *p++ = c;
c = getc (finput); c = getc (finput);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment