File: python.nanorc

package info (click to toggle)
nano 2.0.2-1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 5,304 kB
  • ctags: 1,001
  • sloc: ansic: 14,200; sh: 4,101; makefile: 198; sed: 16
file content (8 lines) | stat: -rw-r--r-- 428 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
## Here is an example for Python.
##
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)\>"
color brightgreen "["'].*[^\\]["']" "["']{3}.*[^\\]["']{3}"
color brightgreen start=""""[^"]" end=""""" start="'''[^']" end="'''"
color brightred "#.*$"