Skip to content
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

Improve php-syntax-propertize-extend-region efficiency #789

Merged

Conversation

phil-s
Copy link
Contributor

@phil-s phil-s commented Sep 13, 2024

If the first pair of searches found a heredoc which spanned the entire region, don't perform the second pair of searches, as we already know the new region bounds.

If we do need the second pair of searches, bound the backwards search at the original region START position.

If the first pair of searches found a heredoc which spanned the entire
region, don't perform the second pair of searches, as we already know
the new region bounds.

If we do need the second pair of searches, bound the backwards search
at the original region START position.
@phil-s
Copy link
Contributor Author

phil-s commented Sep 13, 2024

N.b. this is the diff from #676 (comment)

@zonuexe zonuexe merged commit a45038d into emacs-php:master Oct 24, 2024
@zonuexe
Copy link
Member

zonuexe commented Oct 24, 2024

@phil-s
I missed your PR for a long time. I think this PR makes sense. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants