-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pin
s in BNF to improve parsing performance
#932
Conversation
All compilation errors are caused by manually-edited generated files. Will do some git-reverts. |
@HannahSchellekens Please resolve merge conflicts. FWIW I tested this PR in the last alpha builds and didn't notice any problems. |
# Conflicts: # src/nl/hannahsten/texifyidea/folding/LatexEnvironmentFoldingBuilder.kt
I have resolved merge conflicts. |
All usage was already delegated to the PsiFile.referencedFileSet extension method, so changing that method to use the ReferencedFileSetService was enough for it to take effect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, and thanks for the effort! Just one little formatting change which shouldn't be much of an issue.
Edit: for what I've tested it seems to work flawlessly.
src/nl/hannahsten/texifyidea/inspections/latex/LatexAvoidEqnarrayInspection.kt
Outdated
Show resolved
Hide resolved
Fixed, please take a look @HannahSchellekens @PHPirates |
Travis failing, oh no |
Should be fixed by my force-push |
Merged master |
Additions
Added some
{ pin=1 }
or{ pin=2 }
to proper BNF rules to improve parsing performance and fault tolerance.Changes
Regenerate parsers (in awe that some generated files are manually edited).
Backwards incompatible changes
Some Psi APIs are now returning nullable because the parser is now fault-tolerant: it also parses incomplete code as incomplete ASTs. Parsing errors will be displayed but code analysis can still run.