Skip to content

Commit

Permalink
fix: PHP syntax fix for AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG (#4705)
Browse files Browse the repository at this point in the history
* PHP syntax fix for AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG

Co-authored-by: Pipelines <jjpost@ucdavis.edu>
  • Loading branch information
jeroenpost86 and jjpost committed May 20, 2022
1 parent 4c4883a commit d59c22b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/ace/mode/php/php.js
Expand Up @@ -587,14 +587,6 @@ define(function (require, exports, module) {
},

// Other tokens
{
value: PHP.Constants.T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG,
re: /^&/
},
{
value: PHP.Constants.T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG,
re: /^&/
},
{
value: PHP.Constants.T_AND_EQUAL,
re: /^&=/
Expand Down Expand Up @@ -631,6 +623,14 @@ define(function (require, exports, module) {
value: PHP.Constants.T_BOOLEAN_AND,
re: /^&&/
},
{
value: PHP.Constants.T_AMPERSAND_FOLLOWED_BY_VAR_OR_VARARG,
re: /^&(?=[$])/
},
{
value: PHP.Constants.T_AMPERSAND_NOT_FOLLOWED_BY_VAR_OR_VARARG,
re: /^(&)(?=[^\$|^&])/
},
{
value: PHP.Constants.T_BOOLEAN_OR,
re: /^\|\|/
Expand Down

0 comments on commit d59c22b

Please sign in to comment.