Skip to content

Commit

Permalink
Fix parser bug that caused massive slowdowns especially nested elemen…
Browse files Browse the repository at this point in the history
…ts like nested objectLiterals
  • Loading branch information
m0rkeulv committed Jan 26, 2024
1 parent 1b76c9e commit f051cef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## 1.4.26
* Fixed: Parser bug that caused massive slowdown in code with many level nested structures
* Fixed: Return type inlay was not placed correctly in some cases.
* Improved: Better type checking for parameters and assignment expressions.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ prefixExpression ::= (prefixOperator (postfixExpression | valueExpression))
| (assignableOperator assignableValueExpression) { extends=unaryExpression }
postfixExpression ::= (assignableValueExpression assignableOperator)
| notSuffixExpression { extends=unaryExpression }
notSuffixExpression ::= valueExpression suffixOperator { extends=postfixExpression }
notSuffixExpression ::= valueExpression !suffixOperator { extends=postfixExpression }
valueExpression ::= value

// These fake rules won't be in the parser, but the PSI will contain a HaxeBinaryExpression class
Expand Down

0 comments on commit f051cef

Please sign in to comment.