-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Php ampersand fix #4705
Php ampersand fix #4705
Conversation
* 'master' of https://github.com/ajaxorg/ace: fix: Made commas be tokenized as punctuation operator instead of text in JSON (ajaxorg#4703) fix: Multiple Partiql and Amazon Ion textual notation fixes (ajaxorg#4686) fix: Updated PHP mode to support PHP8.1 syntax (ajaxorg#4696) release v1.5.0 chore: use npm changelog in release script (ajaxorg#4698) feat: Added ability to configure certain format options for beautify extension fix: Render bidirectional unicode characters as control characters (ajaxorg#4693)
Codecov Report
@@ Coverage Diff @@
## master #4705 +/- ##
=======================================
Coverage 71.19% 71.19%
=======================================
Files 553 553
Lines 55598 55598
Branches 10392 10392
=======================================
Hits 39584 39584
Misses 16014 16014
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
@jeroenpost86 could you provide an example of code that caused errors before? |
This some example code with the issues:
It is because T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG wasn't defined properly. Here is the same code running in an editor after the fix: https://onlinephp.io/c/2d00a |
I'm not sure I fully understand the issue. If I use this sample in kitchen-sink here https://ace.c9.io/build/kitchen-sink.html |
The kitchen sink is running an older version of the PHP parser. When I open the kitchen sink straight from the repo with PHP 8 stuff:
Screenshot of locally running kitchen sink:
|
Okay, got it, so it's essentially a followup for 8.1 update which was merged but not yet release. Thanks! |
Correct. Sorry for the confusion. I wrongly assumed the 8.1 update was already released :) |
Issue #, if available:
Description of changes:
Fixed the regex for T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG and T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG as this caused issues with the syntax checker
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.