Allow globals that start with $_

This commit is contained in:
Carson McDonald
2013-03-28 17:20:28 -04:00
parent d5021172ee
commit 06d7bd69a3
+5
View File
@@ -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 */