Merged pull request #230 from SunboX/master.
Fixes: php does not highlight variables beginning with underscore e.g. $_foo
This commit is contained in:
commit
8c9b545a1c
1 changed files with 1 additions and 1 deletions
|
|
@ -544,7 +544,7 @@ var PhpHighlightRules = 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