Allow .["foo"].["bar"]

This commit is contained in:
Nicolas Williams committed 2019-03-24 23:23:16 -05:00
1 parent c72ed135e4
commit 3e0a118886
2 files changed
+857 -814

No files matched your search

+851 -814
View File
File diff suppressed because it is too large. Load diff
+6
View File
@@ -688,6 +688,12 @@ Term '[' Exp ']' '?' {
Term '[' Exp ']' %prec NONOPT {
$$ = gen_index($1, $3);
} |
Term '.' '[' Exp ']' '?' {
$$ = gen_index_opt($1, $4);
} |
Term '.' '[' Exp ']' %prec NONOPT {
$$ = gen_index($1, $4);
} |
Term '[' ']' '?' {
$$ = block_join($1, gen_op_simple(EACH_OPT));
} |