1 ## PHP Syntax Highlighting
2 syntax "PHP" "\.php[2345s~]?$"
5 color white start="<\?(php|=)?" end="\?>"
7 color brightblue "([a-zA-Z0-9_-]*)\("
9 color brightblue "(class|extends|goto) ([a-zA-Z0-9_]*)"
10 color green "[^a-z0-9_-]{1}(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|endif|foreach|endforeach|@|while|public|private|protected|return|true|false|null|TRUE|FALSE|NULL|const|static|extends|as|array|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|namespace|use)[^a-z0-9_-]{1}"
11 color brightblue "[a-zA-Z0-9_]+:"
13 color white "\$[a-zA-Z_0-9$]*|[=!<>]"
14 color white "\->[a-zA-Z_0-9$]*|[=!<>]"
16 color yellow "[.,{}();]"
19 color yellow "[=][^>]"
21 color magenta "[+-]*([0-9]\.)*[0-9]+([eE][+-]?([0-9]\.)*[0-9])*"
22 color magenta "0x[0-9a-zA-Z]*"
24 color brightblue "(\$this|parent::|self::|\$this->)"
26 color magenta "(\;|\||\^){1}"
28 color green "(\;\;|\|\||::|=>|->)"
30 color brightyellow "(#.*|//.*)$"
32 color red "('[^']*')|(\"[^\"]*\")"
34 color white "\{\$[^}]*\}"
36 color red "(<\?(php)?|\?>)"
38 color red start="\?>" end="<\?(php|=)?"
40 color ,green "[^[:space:]]{1}[[:space:]]+$"
42 color brightyellow start="/\*" end="\*/"