From edb22942f3e85928ee15e66f24290bf9eff97a97 Mon Sep 17 00:00:00 2001 From: Mal Date: Sat, 21 May 2022 22:21:28 +0200 Subject: [PATCH] Init --- python.nanorc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 python.nanorc 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 "(\"|').*?(\"|')"