/
snap
/
gh
/
640
/
usr
/
share
/
nano
/
/snap/gh/640/usr/share/nano
mkdir
upload
Name
Size
Mode
Actions
debian/
-
0755
rm
extra/
-
0755
rm
asm.nanorc
714
0644
edit
dl
rm
autoconf.nanorc
635
0644
edit
dl
rm
awk.nanorc
1339
0644
edit
dl
rm
c.nanorc
1926
0644
edit
dl
rm
changelog.nanorc
790
0644
edit
dl
rm
cmake.nanorc
824
0644
edit
dl
rm
css.nanorc
485
0644
edit
dl
rm
debian.nanorc
801
0644
edit
dl
rm
default.nanorc
775
0644
edit
dl
rm
elisp.nanorc
1108
0644
edit
dl
rm
email.nanorc
340
0644
edit
dl
rm
go.nanorc
1446
0644
edit
dl
rm
groff.nanorc
742
0644
edit
dl
rm
guile.nanorc
562
0644
edit
dl
rm
haskell.nanorc
1009
0644
edit
dl
rm
html.nanorc
1286
0644
edit
dl
rm
java.nanorc
654
0644
edit
dl
rm
javascript.nanorc
822
0644
edit
dl
rm
json.nanorc
805
0644
edit
dl
rm
lua.nanorc
2461
0644
edit
dl
rm
makefile.nanorc
536
0644
edit
dl
rm
man.nanorc
717
0644
edit
dl
rm
markdown.nanorc
947
0644
edit
dl
rm
nanohelp.nanorc
594
0644
edit
dl
rm
nanorc.nanorc
4325
0644
edit
dl
rm
nftables.nanorc
927
0644
edit
dl
rm
objc.nanorc
1487
0644
edit
dl
rm
ocaml.nanorc
831
0644
edit
dl
rm
patch.nanorc
600
0644
edit
dl
rm
perl.nanorc
2119
0644
edit
dl
rm
php.nanorc
1081
0644
edit
dl
rm
po.nanorc
1181
0644
edit
dl
rm
python.nanorc
1406
0644
edit
dl
rm
ruby.nanorc
1343
0644
edit
dl
rm
rust.nanorc
1036
0644
edit
dl
rm
sh.nanorc
1527
0644
edit
dl
rm
sql.nanorc
2406
0644
edit
dl
rm
tcl.nanorc
2133
0644
edit
dl
rm
tex.nanorc
199
0644
edit
dl
rm
texinfo.nanorc
834
0644
edit
dl
rm
xml.nanorc
686
0644
edit
dl
rm
yaml.nanorc
1368
0644
edit
dl
rm
Edit:
/snap/gh/640/usr/share/nano/python.nanorc
(1406B)
## Syntax highlighting for Python. syntax python "\.py$" header "^#!.*python" magic "Python script" comment "#" # Alternative linter: pylint --exit-zero 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 normal "'''|"""" # Comments. color brightred "(^|[[:blank:]])#.*" # Triple-quoted strings. color brightgreen start="'''([^'),]|$)" end="(^|[^(\])'''" color brightgreen start=""""([^"),]|$)" end="(^|[^(\])"""" # Backslash escapes. color lime "\\($|[\'"abfnrtv]|[0-3]?[0-7]?[0-7]|x[[:xdigit:]]{2})" color lime "\\(N\{[[:alpha:]]+\}|u[[:xdigit:]]{4}|U[[:xdigit:]]{8})" # Reminders. color brightwhite,yellow "\<(FIXME|TODO|XXX)\>" # Trailing whitespace. color ,green "[[:space:]]+$"
Save
cmd:
run