Skip to content

Commit d59c22b

Browse files
jeroenpost86jjpost
andauthored
fix: PHP syntax fix for AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG (#4705)
* PHP syntax fix for AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG Co-authored-by: Pipelines <jjpost@ucdavis.edu>
1 parent 4c4883a commit d59c22b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/ace/mode/php/php.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -587,14 +587,6 @@ define(function (require, exports, module) {
587587
},
588588

589589
// Other tokens
590-
{
591-
value: PHP.Constants.T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG,
592-
re: /^&/
593-
},
594-
{
595-
value: PHP.Constants.T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG,
596-
re: /^&/
597-
},
598590
{
599591
value: PHP.Constants.T_AND_EQUAL,
600592
re: /^&=/
@@ -631,6 +623,14 @@ define(function (require, exports, module) {
631623
value: PHP.Constants.T_BOOLEAN_AND,
632624
re: /^&&/
633625
},
626+
{
627+
value: PHP.Constants.T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG,
628+
re: /^&(?=[$])/
629+
},
630+
{
631+
value: PHP.Constants.T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG,
632+
re: /^(&)(?=[^\$|^&])/
633+
},
634634
{
635635
value: PHP.Constants.T_BOOLEAN_OR,
636636
re: /^\|\|/

0 commit comments

Comments
 (0)