fzf added to the bashrc
[dotfiles/.git] / .nano / php.nanorc
1 ## PHP Syntax Highlighting
2 syntax "PHP" "\.php[2345s~]?$"
3 magic "PHP script"
4 comment "//"
5 color white start="<\?(php|=)?" end="\?>"
6 # Functions
7 color brightblue "([a-zA-Z0-9_-]*)\("
8 # Constructs
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_]+:"
12 # Variables
13 color white "\$[a-zA-Z_0-9$]*|[=!<>]"
14 color white "\->[a-zA-Z_0-9$]*|[=!<>]"
15 # Special Characters
16 color yellow "[.,{}();]"
17 color yellow "\["
18 color yellow "\]"
19 color yellow "[=][^>]"
20 # Numbers
21 color magenta "[+-]*([0-9]\.)*[0-9]+([eE][+-]?([0-9]\.)*[0-9])*"
22 color magenta "0x[0-9a-zA-Z]*"
23 # Special Variables
24 color brightblue "(\$this|parent::|self::|\$this->)"
25 # Bitwise Operations
26 color magenta "(\;|\||\^){1}"
27 # And/Or/SRO/etc
28 color green "(\;\;|\|\||::|=>|->)"
29 # Online Comments
30 color brightyellow "(#.*|//.*)$"
31 # STRINGS!
32 color red "('[^']*')|(\"[^\"]*\")"
33 # Inline Variables
34 color white "\{\$[^}]*\}"
35 # PHP Tags
36 color red "(<\?(php)?|\?>)"
37 # General HTML
38 color red start="\?>" end="<\?(php|=)?"
39 # trailing whitespace
40 color ,green "[^[:space:]]{1}[[:space:]]+$"
41 # multi-line comments
42 color brightyellow start="/\*" end="\*/"