jquery.syntax.brush.php-script.js 1.18 KB
// This file is part of the "jQuery.Syntax" project, and is distributed under the MIT License.
Syntax.register("php-script",function(a){a.push(["this","true","false"],{klass:"constant"});a.push("abstract and as break case cfunction class const continue declare default die do echo else elseif enddeclare endfor endforeach endif endswitch endwhile extends extends for foreach function global if implements include include_once interface old_function or require require_once return static switch throw use var while xor".split(" "),{klass:"keyword"});a.push("+ * / - & | ~ ! % < = > [ ] new".split(" "),
{klass:"operator"});a.push(["private","protected","public"],{klass:"access"});a.push({pattern:/\$[a-z_][a-z0-9]*/gi,klass:"variable"});a.push(Syntax.lib.camelCaseType);a.push(Syntax.lib.cStyleFunction);a.push(Syntax.lib.cStyleComment);a.push(Syntax.lib.cppStyleComment);a.push(Syntax.lib.perlStyleComment);a.push(Syntax.lib.webLink);a.push(Syntax.lib.singleQuotedString);a.push(Syntax.lib.doubleQuotedString);a.push(Syntax.lib.stringEscape);a.push(Syntax.lib.decimalNumber);a.push(Syntax.lib.hexNumber);
a.processes["function"]=Syntax.lib.webLinkProcess("http://www.php.net/manual-lookup.php?pattern=")});