mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-28 06:42:09 +00:00
- fixed: The parser was not generating a compound statement node for anonymous action functions.
This commit is contained in:
parent
665d752686
commit
33567741f5
1 changed files with 6 additions and 1 deletions
|
@ -522,7 +522,12 @@ light_list(X) ::= light_list(A) COMMA STRCONST(B).
|
|||
}
|
||||
|
||||
/* A state action can be either a compound statement or a single action function call. */
|
||||
state_action(X) ::= LBRACE statement_list(A) scanner_mode RBRACE. { X = A; /*X-overwrites-A*/ }
|
||||
state_action(X) ::= LBRACE(T) statement_list(A) scanner_mode RBRACE.
|
||||
{
|
||||
NEW_AST_NODE(CompoundStmt,stmt,T);
|
||||
stmt->Content = A;
|
||||
X = stmt;
|
||||
}
|
||||
state_action(X) ::= LBRACE error scanner_mode RBRACE. { X = NULL; }
|
||||
state_action(X) ::= state_call(A) scanner_mode SEMICOLON. { X = A; /*X-overwrites-A*/ }
|
||||
|
||||
|
|
Loading…
Reference in a new issue