2
0
Fork 0
nano-syntax-archived/php.nanorc
2015-05-03 00:08:51 -06:00

18 lines
716 B
Text

syntax "php" "\.php[2345s~]?$"
color red "[-+/*=<>?:!~%&|]"
color brightmagenta "(<\?(php)?|\?>)"
color brightblue "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
color white "[(]"
color green "\<(float|global|double|bool|char|int|enum|const)\>"
color brightblack "\<(class|new|private|public|function|for|foreach|if|while|do|var)\>"
color brightblack "\<(return|else|elseif|case|default|switch)\>"
color brightred "\<(goto|break|continue)\>"
color brightcyan "\<(true|false)\>"
color yellow ""(\\.|[^"])*"|'(\\.|[^'])*'"
color brightyellow "\$[A-Za-z_][A-Za-z0-9_]*"
color cyan "(^|[[:space:]])//.*"
color cyan start="/\*" end="\*/"
color brightwhite,cyan "TODO:?"
#color ,green "[[:space:]]+$"
# +EXTRALINT