Allow other expression after block &
@@ -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 == ':') {
+ if (isalpha(lexer->lookahead) || lexer->lookahead == '@' || lexer->lookahead == '$' || lexer->lookahead == '(' || lexer->lookahead == ':' || lexer->lookahead == '[') {
lexer->result_symbol = BLOCK_AMPERSAND;
return true;
} else {
