mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
'[]' is now a valid record ctor.
This commit is contained in:
parent
83bd6584ee
commit
eb736a34b3
1 changed files with 6 additions and 0 deletions
|
@ -403,6 +403,12 @@ expr:
|
|||
$$ = $2;
|
||||
}
|
||||
|
||||
| '[' ']'
|
||||
{
|
||||
// We take this as an empty record constructor.
|
||||
$$ = new RecordConstructorExpr(new ListExpr);
|
||||
}
|
||||
|
||||
|
||||
| TOK_RECORD '(' expr_list ')'
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue