Skip to content

Commit 059ff71

Browse files
authored
fix: php worker rules for T_NAME_FULLY_QUALIFIED, T_NAME_QUALIFIED, T_NAME_RELATIVE namespaced names tokens (#4948)
1 parent d2ed431 commit 059ff71

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ace/mode/php/php.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -772,15 +772,15 @@ define(function (require, exports, module) {
772772
},
773773
{
774774
value: PHP.Constants.T_NAME_FULLY_QUALIFIED,
775-
re: /^\\App\\Namespace/
775+
re: /^\\\w+\\\w+(?:\\\w+)*/
776776
},
777777
{
778778
value: PHP.Constants.T_NAME_QUALIFIED,
779-
re: /^App\\Namespace/
779+
re: /^\w+\\\w+(?:\\\w+)*/
780780
},
781781
{
782782
value: PHP.Constants.T_NAME_RELATIVE,
783-
re: /^namespace\\Namespace/
783+
re: /^namespace\\\w+(?:\\\w+)*/
784784
},
785785
{
786786
value: PHP.Constants.T_ATTRIBUTE,

0 commit comments

Comments
 (0)