]> code.delx.au - gnu-emacs-elpa/commit
Support short-hand object literals {foo, bar} everywhere.
authorStephen Hicks <sdh@google.com>
Tue, 11 Nov 2014 00:14:14 +0000 (16:14 -0800)
committerStephen Hicks <sdh@google.com>
Tue, 11 Nov 2014 01:44:38 +0000 (17:44 -0800)
commitdd344ff6d7b079f1ca9fe967cd7e8b6850a4231c
tree3779da201905a5ba7dd299d996288e0cc60b29df
parent673086589305b6f60a6b76603f240bd06eff5e01
Support short-hand object literals {foo, bar} everywhere.

This is specified in ยง12.2.5 of the draft spec (http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object-initializer) by the production [PropertyDefinition : IdentifierReference], and discussed e.g. in http://ariya.ofilabs.com/2013/02/es6-and-object-literal-property-value-shorthand.html.
js2-mode.el
tests/parser.el