commit edb22942f3e85928ee15e66f24290bf9eff97a97 Author: Mal Date: Sat May 21 22:21:28 2022 +0200 Init diff --git a/python.nanorc b/python.nanorc new file mode 100644 index 0000000..c55e17f --- /dev/null +++ b/python.nanorc @@ -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 "(\"|').*?(\"|')"