fix #1795 PHP variables that begin with an underscore are not highlighted
This commit is contained in:
parent
1e46543b05
commit
0eb2b74a66
1 changed files with 1 additions and 1 deletions
|
|
@ -969,7 +969,7 @@ var PhpLangHighlightRules = function() {
|
|||
else if (value == "debugger")
|
||||
return "invalid.deprecated";
|
||||
else
|
||||
if(value.match(/^(\$[a-zA-Z][a-zA-Z0-9_]*|self|parent)$/))
|
||||
if(value.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|self|parent)$/))
|
||||
return "variable";
|
||||
return "identifier";
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue