aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/erl_parse.yrl
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2013-10-09 16:37:58 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-01-28 15:56:30 +0100
commitf00675d3c682f53824e23f1599cbb09ff2d57daa (patch)
treed86b3f4610cf2712e064920cac56098f41b8a3d7 /lib/stdlib/src/erl_parse.yrl
parente9a3d0b6533b72cba3d4e7ea129f835e80bd2647 (diff)
downloadotp-f00675d3c682f53824e23f1599cbb09ff2d57daa.tar.gz
otp-f00675d3c682f53824e23f1599cbb09ff2d57daa.tar.bz2
otp-f00675d3c682f53824e23f1599cbb09ff2d57daa.zip
stdlib: Deny variables as keys and disallow ':=' in map construction
In the current iteration of Maps we should deny *any* variables in Map keys.
Diffstat (limited to 'lib/stdlib/src/erl_parse.yrl')
-rw-r--r--lib/stdlib/src/erl_parse.yrl2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/stdlib/src/erl_parse.yrl b/lib/stdlib/src/erl_parse.yrl
index e9a813e098..c04a1aeb89 100644
--- a/lib/stdlib/src/erl_parse.yrl
+++ b/lib/stdlib/src/erl_parse.yrl
@@ -335,8 +335,6 @@ map_expr -> expr_max '#' map_tuple :
{map, ?line('$2'),'$1','$3'}.
map_expr -> map_expr '#' map_tuple :
{map, ?line('$2'),'$1','$3'}.
-map_expr -> map_expr '.' atom :
- {map_field, ?line('$2'),'$1','$3'}.
map_tuple -> '{' '}' : [].
map_tuple -> '{' map_fields '}' : '$2'.