Skip to content

Commit 6ffb248

Browse files
author
José Valim
committed
No longer allow empty access as in [][]
1 parent 50af805 commit 6ffb248

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/elixir/src/elixir_parser.yrl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ max_expr -> parens_call call_args_parens : build_identifier('$1', '$2').
226226
max_expr -> parens_call call_args_parens call_args_parens : build_nested_parens('$1', '$2', '$3').
227227
max_expr -> dot_alias : '$1'.
228228

229-
bracket_arg -> open_bracket ']' : build_list('$1', []).
230229
bracket_arg -> open_bracket kw close_bracket : build_list('$1', '$2').
231230
bracket_arg -> open_bracket container_expr close_bracket : build_list('$1', '$2').
232231
bracket_arg -> open_bracket container_expr ',' close_bracket : build_list('$1', '$2').

0 commit comments

Comments
 (0)