This commit is contained in:
Mal 2022-05-21 22:21:28 +02:00
commit edb22942f3

15
python.nanorc Normal file
View File

@ -0,0 +1,15 @@
syntax python "\.py$"
header "^#!.*python"
magic "Python script"
comment "#"
color cyan "\w+\("
color orange "def \w+\(.*\):"
color green "def \w+\("
color brightcyan "\b(class|def|import|return|for|while|in|if|elif|else|raise|is|not|and|or|with|continue|break|try|except|finally)(:| )"
color cyan "\b(True|False|None)"
color red "(=|·|\/|\+|-|\*|\!|>|<|:)"
color white "(\(|\)|,|\.)"
color brightmagenta "([0-9]|[0-9]+\.[0-9]+|self)"
color grey "#.*"
color yellow "(\"|').*?(\"|')"