Skip to content

Commit

Permalink
fix: Namespace-relative names for php (#4963)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkslanc authored Oct 17, 2022
1 parent cd2de86 commit 96e4066
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ace/mode/php/php.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,10 +461,6 @@ define(function (require, exports, module) {
value: PHP.Constants.T_MATCH,
re: /^match\b/i
},
{
value: PHP.Constants.T_NAMESPACE,
re: /^namespace\b/i
},
{
value: PHP.Constants.T_NEW,
re: /^new\b/i
Expand Down Expand Up @@ -782,6 +778,10 @@ define(function (require, exports, module) {
value: PHP.Constants.T_NAME_RELATIVE,
re: /^namespace\\\w+(?:\\\w+)*/
},
{
value: PHP.Constants.T_NAMESPACE,
re: /^namespace\b/i
},
{
value: PHP.Constants.T_ATTRIBUTE,
re: /^#\[([\S\s]*?)]/
Expand Down

0 comments on commit 96e4066

Please sign in to comment.