]> code.delx.au - gnu-emacs-elpa/commit
Support parsing the ES6 'super' keyword.
authorStephen Hicks <sdh@google.com>
Tue, 11 Nov 2014 02:05:31 +0000 (18:05 -0800)
committerStephen Hicks <sdh@google.com>
Sat, 15 Nov 2014 09:02:32 +0000 (01:02 -0800)
commit2b0f5ba47ca64a515a9cf40c61b3a4f0ee9d4e08
tree4068636177fbd05a8e97be77362ea761ffb7ee0f
parent30249fa3a8e3d7c8cb72f132985214d6cd52df7d
Support parsing the ES6 'super' keyword.

This is basically implemented by imitating the handling of 'this', since they behave in very similar ways.  The keyword is defined in the various productions in ยง12.3 of the draft ES6 spec: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-left-hand-side-expressions, and usage examples are available at e.g. https://github.com/lukehoban/es6features#classes.
js2-mode.el
tests/parser.el