mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
allow empty paren as a valid expr
This commit is contained in:
@@ -1869,6 +1869,10 @@ primary : literal
|
||||
{
|
||||
$$ = $2;
|
||||
}
|
||||
| tLPAREN_ARG {p->lstate = EXPR_ENDARG;} rparen
|
||||
{
|
||||
$$ = 0;
|
||||
}
|
||||
| tLPAREN compstmt ')'
|
||||
{
|
||||
$$ = $2;
|
||||
|
||||
Reference in New Issue
Block a user