Skip to content

Commit

Permalink
Parse nth references in parser
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Feb 21, 2023
1 parent ab4fcd2 commit 77024b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/yarp.c
Original file line number Diff line number Diff line change
Expand Up @@ -4912,6 +4912,7 @@ parse_expression_prefix(yp_parser_t *parser) {
case YP_TOKEN_FLOAT:
parser_lex(parser);
return yp_float_node_create(parser, &parser->previous);
case YP_TOKEN_NTH_REFERENCE:
case YP_TOKEN_GLOBAL_VARIABLE:
parser_lex(parser);
return yp_node_global_variable_read_create(parser, &parser->previous);
Expand Down

0 comments on commit 77024b7

Please sign in to comment.