_ valid after splat star and block amp
@@ -539,7 +539,7 @@ struct Scanner {
// TODO: check for trailing whitespace instead?
if (valid_symbols[BLOCK_AMPERSAND] && lexer->lookahead == '&') {
advance(lexer);
- if (isalpha(lexer->lookahead) || lexer->lookahead == '@' || lexer->lookahead == '$' || lexer->lookahead == '(' || lexer->lookahead == ':' || lexer->lookahead == '[') {
+ if (isalpha(lexer->lookahead) || lexer->lookahead == '_' || lexer->lookahead == '@' || lexer->lookahead == '$' || lexer->lookahead == '(' || lexer->lookahead == ':' || lexer->lookahead == '[') {
lexer->result_symbol = BLOCK_AMPERSAND;
return true;
} else {
@@ -550,7 +550,7 @@ struct Scanner {
// TODO: check for trailing whitespace instead?
if (valid_symbols[SPLAT_STAR] && lexer->lookahead == '*') {
advance(lexer);
- if (isalpha(lexer->lookahead) || lexer->lookahead == '@' || lexer->lookahead == '$' || lexer->lookahead == '(' || lexer->lookahead == ':' || lexer->lookahead == '[') {
+ if (isalpha(lexer->lookahead) || lexer->lookahead == '_' || lexer->lookahead == '@' || lexer->lookahead == '$' || lexer->lookahead == '(' || lexer->lookahead == ':' || lexer->lookahead == '[') {
lexer->result_symbol = SPLAT_STAR;
return true;
} else {
