Skip to content

Commit 96e4066

Browse files
authored
fix: Namespace-relative names for php (#4963)
1 parent cd2de86 commit 96e4066

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/ace/mode/php/php.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,6 @@ define(function (require, exports, module) {
461461
value: PHP.Constants.T_MATCH,
462462
re: /^match\b/i
463463
},
464-
{
465-
value: PHP.Constants.T_NAMESPACE,
466-
re: /^namespace\b/i
467-
},
468464
{
469465
value: PHP.Constants.T_NEW,
470466
re: /^new\b/i
@@ -782,6 +778,10 @@ define(function (require, exports, module) {
782778
value: PHP.Constants.T_NAME_RELATIVE,
783779
re: /^namespace\\\w+(?:\\\w+)*/
784780
},
781+
{
782+
value: PHP.Constants.T_NAMESPACE,
783+
re: /^namespace\b/i
784+
},
785785
{
786786
value: PHP.Constants.T_ATTRIBUTE,
787787
re: /^#\[([\S\s]*?)]/

0 commit comments

Comments
 (0)