## Here is an example for Python. syntax python "\.py$" header "^#!.*python" magic "Python script" comment "#" linter pyflakes # Function definitions. color brightblue "def [0-9A-Za-z_]+" # Keywords. color brightcyan "\<(and|as|assert|async|await|break|class|continue)\>" color brightcyan "\<(def|del|elif|else|except|finally|for|from)\>" color brightcyan "\<(global|if|import|in|is|lambda|nonlocal|not|or)\>" color brightcyan "\<(pass|raise|return|try|while|with|yield)\>" # These two are keywords in Python 2, but functions in Python 3, # so only color them when they are followed by whitespace, assuming # that print(x) is a function invocation and print (x) is a statement. color brightcyan "\<(exec|print)([[:blank:]]|$)" # Special values. color brightmagenta "\<(False|None|True)\>" # Mono-quoted strings. color brightgreen "'([^'\]|\\.)*'|'''" color brightgreen ""([^"\]|\\.)*"|"""" color normal "'''|"""" # Comments. color brightred "(^|[[:blank:]])#.*" # Triple-quoted strings. color brightgreen start="'''([^'),]|$)" end="(^|[^(\])'''" color brightgreen start=""""([^"),]|$)" end="(^|[^(\])"""" # Reminders. color brightwhite,yellow "(FIXME|TODO|XXX)" # Trailing whitespace. color ,green "[[:space:]]+$"
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
asm.nanorc | File | 884 B | 0644 |
|
autoconf.nanorc | File | 567 B | 0644 |
|
awk.nanorc | File | 1.31 KB | 0644 |
|
c.nanorc | File | 1.89 KB | 0644 |
|
changelog.nanorc | File | 712 B | 0644 |
|
cmake.nanorc | File | 788 B | 0644 |
|
css.nanorc | File | 344 B | 0644 |
|
debian.nanorc | File | 757 B | 0644 |
|
default.nanorc | File | 494 B | 0644 |
|
elisp.nanorc | File | 1.08 KB | 0644 |
|
fortran.nanorc | File | 1.92 KB | 0644 |
|
gentoo.nanorc | File | 4.13 KB | 0644 |
|
go.nanorc | File | 1.31 KB | 0644 |
|
groff.nanorc | File | 710 B | 0644 |
|
guile.nanorc | File | 587 B | 0644 |
|
html.nanorc | File | 1.22 KB | 0644 |
|
java.nanorc | File | 653 B | 0644 |
|
javascript.nanorc | File | 822 B | 0644 |
|
json.nanorc | File | 878 B | 0644 |
|
lua.nanorc | File | 2.41 KB | 0644 |
|
makefile.nanorc | File | 535 B | 0644 |
|
man.nanorc | File | 728 B | 0644 |
|
mgp.nanorc | File | 200 B | 0644 |
|
mutt.nanorc | File | 185 B | 0644 |
|
nanohelp.nanorc | File | 418 B | 0644 |
|
nanorc.nanorc | File | 2.79 KB | 0644 |
|
nftables.nanorc | File | 791 B | 0644 |
|
objc.nanorc | File | 1.66 KB | 0644 |
|
ocaml.nanorc | File | 859 B | 0644 |
|
patch.nanorc | File | 590 B | 0644 |
|
perl.nanorc | File | 1.66 KB | 0644 |
|
php.nanorc | File | 1.05 KB | 0644 |
|
po.nanorc | File | 959 B | 0644 |
|
postgresql.nanorc | File | 2.97 KB | 0644 |
|
pov.nanorc | File | 632 B | 0644 |
|
python.nanorc | File | 1.2 KB | 0644 |
|
ruby.nanorc | File | 1.49 KB | 0644 |
|
rust.nanorc | File | 1.08 KB | 0644 |
|
sh.nanorc | File | 1.46 KB | 0644 |
|
spec.nanorc | File | 1.88 KB | 0644 |
|
tcl.nanorc | File | 1.95 KB | 0644 |
|
tex.nanorc | File | 203 B | 0644 |
|
texinfo.nanorc | File | 463 B | 0644 |
|
xml.nanorc | File | 527 B | 0644 |
|