.*\.(php|php3|php4|phtml)
comment
/\*.*?\*/
SYNTAX_ERROR
//[ \t]*TODO[ \t]*:(.|\\[\\\n])*?$
comment
#(.|\\[\\\n])*?$
comment
//(.|\\[\\\n])*?$
doubleQuoteText
"(.|\\[\\"])*?"
doubleQuoteText
'(.|\\[\\'])*?'
keyword
[\$]+[a-zA-Z_][a-zA-Z0-9_]*
type
\b(array|bool|boolean|double|float|int|integer|numeric|object|resource|string|unset)\b
storageKeyword
\b(abstract|and|as|break|case|catch|class|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exit|extends|final|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|interface|isset|list|namespace|new|or|print|private|protected|public|require|require_once|return|static|switch|throw|trait|try|unset|use|var|while|xor)\b
commonDefine
\b(doubleval|floatval|gettype|intval|print_r|serialize|settype|strval|unserialize|var_dump|var_export)\b
number
\b(((0(x|X)[0-9a-fA-F]*)|(\d+\.?\d*|\.\d+)((e|E)(\+|\-)?\d+)?)(L|l|UL|ul|u|U|F|f)?)\b
boolean
\b(true|TRUE|false|FALSE)\b
functionName
\b\w+[ \t]*\(
boolean
==|<=|>=|!=|<|>|&&|\{|\}