Skip to content

Commit

Permalink
fix(parser): allow wait as field identifier (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
xensik authored Sep 21, 2024
1 parent be3abc1 commit 323facb
Show file tree
Hide file tree
Showing 3 changed files with 607 additions and 586 deletions.
2 changes: 2 additions & 0 deletions gen/gsc/parser.ypp
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,8 @@ expr_animtree
expr_identifier_nosize
: IDENTIFIER
{ $$ = expr_identifier::make(@$, $1); };
| WAIT
{ $$ = expr_identifier::make(@$, "wait"); };
;

expr_identifier
Expand Down
2 changes: 1 addition & 1 deletion include/xsk/gsc/parser.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4981,7 +4981,7 @@ switch (yykind)
/// Constants.
enum
{
yylast_ = 2377, ///< Last index in yytable_.
yylast_ = 2429, ///< Last index in yytable_.
yynnts_ = 92, ///< Number of nonterminal symbols.
yyfinal_ = 23 ///< Termination state number.
};
Expand Down
Loading

0 comments on commit 323facb

Please sign in to comment.