Commit 06d7bd69 authored by Carson McDonald's avatar Carson McDonald

Allow globals that start with $_

parent d5021172
......@@ -4730,6 +4730,11 @@ parser_yylex(parser_state *p)
switch (c) {
case '_': /* $_: last read line string */
c = nextc(p);
if (c != -1 && identchar(c)) { /* if there is more after _ it is a variable */
tokadd(p, '$');
tokadd(p, c);
break;
}
pushback(p, c);
c = '_';
/* fall through */
......
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