Skip to content

Commit

Permalink
updating comment on current workaround for slow parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rkeulv committed Jan 27, 2024
1 parent a104901 commit 937a91d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/intellij/plugins/haxe/lang/parser/haxe.bnf
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 937a91d

Please sign in to comment.