Permalink
Browse files

Add inheritance operator.

  • Loading branch information...
1 parent 9405c5f commit 56cb74bffaa074e91f453dc202f6d1d19ba818d4 @coreh coreh committed Apr 18, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 parser.js
View
@@ -260,7 +260,8 @@ Parser.prototype = {
, BitshiftExpression: leftAssociativeOperator('AdditionExpression', 'bitshift operator', 'bitshift expression')
, AdditionExpression: leftAssociativeOperator('MultiplicationExpression', 'addition operator', 'addition expression')
, MultiplicationExpression: leftAssociativeOperator('ApplyExpression', 'multiplication operator', 'multiplication expression')
-, ApplyExpression: leftAssociativeOperator('UnaryExpression', 'bang', 'apply expression')
+, ApplyExpression: leftAssociativeOperator('InheritanceExpression', 'bang', 'apply expression')
+, InheritanceExpression: leftAssociativeOperator('UnaryExpression', 'colon', 'inheritance expression')
, UnaryExpression: function() {
var operator
if (operator = this.eat(['bang', 'tilde', 'addition operator'])) {

0 comments on commit 56cb74b

Please sign in to comment.