Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3aa9cd9

Browse files
author
Nikita Glukhov
committed
Allow empty arrays in grammar
1 parent 27e5214 commit 3aa9cd9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jsquery_gram.y

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,7 @@ result:
255255

256256
array:
257257
'[' value_list ']' { $$ = makeItemArray($2); }
258+
| '[' ']' { $$ = makeItemArray(NIL); }
258259
;
259260

260261
scalar_value:

0 commit comments

Comments
 (0)