2006-06-01 21:23:28 +04:00
## Here is an example for Python.
##
syntax "python" "\.py$"
2008-09-30 18:30:33 +04:00
header "^#!.*/python[-0-9._]*"
2006-06-01 21:23:28 +04:00
icolor brightblue "def [0-9A-Z_]+"
2008-10-01 04:55:13 +04:00
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)\>"
2006-12-24 21:17:28 +03:00
color brightgreen "['][^']*[^\\][']" "[']{3}.*[^\\][']{3}"
color brightgreen "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
2014-02-26 16:35:10 +04:00
color brightgreen start="\"\"\"[^"]" end="\"\"\""
color brightgreen start="\'\'\'[^']" end="\'\'\'"
2006-06-01 21:23:28 +04:00
color brightred "#.*$"
2014-03-24 16:45:20 +04:00
## Trailing whitespace
color ,green "[[:space:]]+$"