Parameter types are white now and other improvements

This commit is contained in:
Mal 2022-05-21 23:23:06 +02:00
parent edb22942f3
commit b1b011349c
1 changed files with 16 additions and 10 deletions

View File

@ -1,15 +1,21 @@
#
# Monokai like theme for python as used in PyCharm IDE
#
syntax python "\.py$" syntax python "\.py$"
header "^#!.*python" header "^#!.*python"
magic "Python script" magic "Python script"
comment "#" comment "#"
color cyan "\w+\(" color white ".*"
color orange "def \w+\(.*\):" color cyan "\w+\("
color green "def \w+\(" color orange "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 green "def \w+\("
color cyan "\b(True|False|None)" 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 red "(=|·|\/|\+|-|\*|\!|>|<|:)" color cyan "\b(True|False|None)"
color white "(\(|\)|,|\.)" color white ": *\w+ *(,|\))"
color brightmagenta "([0-9]|[0-9]+\.[0-9]+|self)" color red "(=|·|\/|\+|-|\*|\!|>|<|:)"
color grey "#.*" color white "(\(|\)|,|\.|->)"
color yellow "(\"|').*?(\"|')" color brightmagenta "([0-9]|[0-9]+\.[0-9]+|self)"
color grey "#.*"
color yellow "(\"|').*?(\"|')"