fix #1059 - empty record

This commit is contained in:
Umur Ozkul 2022-10-04 13:27:37 +02:00
parent 60f464ebac
commit fb43cb3bb4

View File

@ -276,8 +276,10 @@ arrayConstructor 'array'
{ return [head, ...tail]; }
recordConstructor 'record'
= '{' _nl args:array_recordArguments _nl end_of_record
{ return h.constructRecord(args); }
= '{' _nl end_of_record
{ return h.constructRecord([]); }
/ '{' _nl args:array_recordArguments _nl end_of_record
{ return h.constructRecord(args); }
end_of_record
= '}'