mirror of
https://github.com/scopatz/nanorc.git
synced 2024-10-18 02:06:40 -07:00
First nanorc commit.
This commit is contained in:
commit
2d2bb4ba12
24 changed files with 508 additions and 0 deletions
20
php.nanorc
Normal file
20
php.nanorc
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
## PHP syntax highlighting
|
||||
##
|
||||
syntax "php" "\.php$" "\.php[2345s]$" "\.phtml$"
|
||||
#functions
|
||||
color brightmagenta "([A-Za-z0-9])"
|
||||
#numbers
|
||||
color brightblue "[0-9]"
|
||||
#special
|
||||
color brightwhite "(^|[^A-Za-z0-9])(<\?php|\?>|var|and|or|default|class|extends|true|false|global|function|new|switch|case|break|next|prev|elseif|if|else|foreach|for|as|do|while|exit|die|declare|require_once|require|include_once|include|return|echo|static|array|isset)([^A-Za-z0-9])"
|
||||
#types
|
||||
color brightred "([^A-Za-z0-9])|[^A-Za-z](null|int|string|float|bool|object|resource)[^A-Za-z0-9_]+[^A-Za-z]"
|
||||
#strings
|
||||
color brightyellow ""(\\.|[^\"])*""
|
||||
color brightyellow "'(\\.|[^\'])*'"
|
||||
#Variables
|
||||
color brightcyan "\$[]\[A-Za-z0-9_'\"]*"
|
||||
#comments
|
||||
color green "//.*"
|
||||
color green "#.*"
|
||||
color green start="/\*" end="\*/"
|
||||
Loading…
Add table
Add a link
Reference in a new issue