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
24
python.nanorc
Normal file
24
python.nanorc
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
## Here is an example for Python.
|
||||
##
|
||||
syntax "python" "\.py$"
|
||||
icolor brightred "def [0-9A-Z_]+"
|
||||
|
||||
|
||||
|
||||
#Keyword Color
|
||||
color green "\<(and|as|assert|class|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|map|not|or|pass|print|raise|try|while|with)\>"
|
||||
color brightmagenta "\<(continue|break|return)\>"
|
||||
|
||||
#Operator Color
|
||||
color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&"
|
||||
|
||||
#Parenthetical Color
|
||||
color magenta "[(){}]" "\[" "\]"
|
||||
|
||||
#String Color
|
||||
color cyan "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
|
||||
color cyan "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
|
||||
color cyan start=""""[^"]" end=""""" start="'''[^']" end="'''"
|
||||
|
||||
#Comment Color
|
||||
color brightblue "#.*$"
|
||||
Loading…
Add table
Add a link
Reference in a new issue