Merged pull request #230 from SunboX/master.

Fixes: php does not highlight variables beginning with underscore e.g. $_foo
This commit is contained in:
Fabian Jakobs 2011-04-30 00:54:02 -07:00
commit 8c9b545a1c

View file

@ -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";
},