diff --git a/src/main/java/com/intellij/plugins/haxe/lang/parser/haxe.bnf b/src/main/java/com/intellij/plugins/haxe/lang/parser/haxe.bnf index b5822c737..ae1065f2a 100644 --- a/src/main/java/com/intellij/plugins/haxe/lang/parser/haxe.bnf +++ b/src/main/java/com/intellij/plugins/haxe/lang/parser/haxe.bnf @@ -738,7 +738,9 @@ prefixExpression ::= (prefixOperator (postfixExpression | valueExpression)) postfixExpression ::= (assignableValueExpression assignableOperator) | notSuffixExpression { extends=unaryExpression } // TODO -// this expression is incorrect on purpose as notSuffixExpression was causing huge slow donws when parsing nested objectLiterals +// this expression is incorrect on purpose as notSuffixExpression was causing huge slow downs when parsing nested objectLiterals +// (remove "!" before suffixOperator tom make it correct again) + // we need to find a way to support the notSuffix without causing each level of nested objectLiteral to cause n^2 valueExpression parsings // since "expr!" is not used anywhere except for macros we can probably get away with this for a while notSuffixExpression ::= valueExpression !suffixOperator { extends=postfixExpression }