Skip to content

Commit

Permalink
fix: php worker rules for T_NAME_FULLY_QUALIFIED, `T_NAME_QUALIFIED…
Browse files Browse the repository at this point in the history
…`, `T_NAME_RELATIVE` namespaced names tokens (#4948)
  • Loading branch information
mkslanc authored Oct 11, 2022
1 parent d2ed431 commit 059ff71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ace/mode/php/php.js
Original file line number Diff line number Diff line change
Expand Up @@ -772,15 +772,15 @@ define(function (require, exports, module) {
},
{
value: PHP.Constants.T_NAME_FULLY_QUALIFIED,
re: /^\\App\\Namespace/
re: /^\\\w+\\\w+(?:\\\w+)*/
},
{
value: PHP.Constants.T_NAME_QUALIFIED,
re: /^App\\Namespace/
re: /^\w+\\\w+(?:\\\w+)*/
},
{
value: PHP.Constants.T_NAME_RELATIVE,
re: /^namespace\\Namespace/
re: /^namespace\\\w+(?:\\\w+)*/
},
{
value: PHP.Constants.T_ATTRIBUTE,
Expand Down

0 comments on commit 059ff71

Please sign in to comment.