diff options
author | serialhex <serialhex@gmail.com> | 2015-04-14 18:42:54 +0300 |
---|---|---|
committer | serialhex <serialhex@gmail.com> | 2015-04-14 18:42:54 +0300 |
commit | accda6b4c52e3fc2a0050fbcea25d464af83a046 (patch) | |
tree | fb7cc1e5b7c513286fb37636e920bffab56d3058 | |
parent | 2b3b73194ff5ec8e381cbd5bef09ac292196e393 (diff) | |
parent | 6a623f1eb99f97299dcf7d7fe0c001508a8e665e (diff) |
Merge pull request #18 from mercury00/patch-1
Update python.nanorc
-rw-r--r-- | python.nanorc | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/python.nanorc b/python.nanorc index f3f53f9..5fd6f47 100644 --- a/python.nanorc +++ b/python.nanorc @@ -1,7 +1,23 @@ syntax "python" "\.py$" -icolor brightblue "def [0-9A-Z_]+" -color brightcyan "\<(and|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|map|not|or|pass|print|raise|return|try|while)\>" +icolor brightred "def [ 0-9A-Z_]+" + +## Python keywords +color brightcyan "\<(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|yield)\>" +color brightmagenta "\<(break|continue|return)\>" + +# Python objects +color red "\<(str|bytearray|bytes|list|tuple|set|frozenset|dict|int|float|complex|bool)\>" + +## Operators +color yellow "[.:;,+*|=!\%]" "<" ">" "/" "-" "&" + +## Braces and parentheses +color magenta "[(){}]" "\[" "\]" + +# Python strings color brightgreen "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}" color brightgreen "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}" color brightgreen start=""""[^"]" end=""""" start="'''[^']" end="'''" -color brightred "#.*$" + +## Comments +color brightblue "#.*$" |