summaryrefslogtreecommitdiff
path: root/share/nano/python.nanorc
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-04-25 12:22:55 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-04-25 12:22:55 -0400
commitc9935112c8b66e23d2acd7584fecd8e99a281b14 (patch)
tree218ebbeb47e5a77620de5af597833522304d92c3 /share/nano/python.nanorc
parent9b77ce1433aa790e174947dc33745926965ee4a1 (diff)
.compizsnap, .nanorc
Track .compizsnap/* files (hurpdurp), only tracked the directory before. Use *.nanorc files from the nano 2.2.6 distribution.
Diffstat (limited to 'share/nano/python.nanorc')
-rw-r--r--share/nano/python.nanorc10
1 files changed, 10 insertions, 0 deletions
diff --git a/share/nano/python.nanorc b/share/nano/python.nanorc
new file mode 100644
index 0000000..4280274
--- /dev/null
+++ b/share/nano/python.nanorc
@@ -0,0 +1,10 @@
+## Here is an example for Python.
+##
+syntax "python" "\.py$"
+header "^#!.*/python[-0-9._]*"
+icolor brightblue "def [0-9A-Z_]+"
+color brightcyan "\<(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield)\>"
+color brightgreen "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
+color brightgreen "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
+color brightgreen start=""""[^"]" end=""""" start="'''[^']" end="'''"
+color brightred "#.*$"