2022-05-21 23:23:06 +02:00
#
2022-05-22 20:07:01 +02:00
# MONOKAI like theme for python as used in the PyCharm IDE
2022-05-21 23:23:06 +02:00
#
2022-05-22 20:07:01 +02:00
# This theme uses extended colors of the gnome terminal. The standard command line
# may not reproduce the desired colors!
#
# A default gnome terminal theme could have unintended effects of the theme colors
# as well. Please use the default one!
2022-05-21 23:23:06 +02:00
2022-05-21 22:21:28 +02:00
syntax python "\.py$"
header "^#!.*python"
magic "Python script"
comment "#"
2022-05-21 23:23:06 +02:00
color white ".*"
2022-05-22 20:07:01 +02:00
# Function or method calls
2022-05-21 23:23:06 +02:00
color cyan "\w+\("
2022-05-22 20:07:01 +02:00
# Parameters inside method or function definitions.
color orange "def \w+\(.*\)( *-> *\w+){0,1}:"
# Function/method names on definitions
2022-05-21 23:23:06 +02:00
color green "def \w+\("
2022-05-23 00:19:22 +02:00
color green "@\w+"
2022-05-22 20:07:01 +02:00
# Statements
color brightcyan "\<(class|def|import|from|return|for|while|global|in|if|elif|else|raise|is|not|and|or|with|continue|break|try|except|finally|pass|yield)\>"
# Parameter type definitions
color white ": *[a-zA-Z_.]+ *(,|\)|= *\w*)"
# Return type definitions
color white "-> *\w+:"
# Operators
2022-05-21 23:23:06 +02:00
color red "(=|·|\/|\+|-|\*|\!|>|<|:)"
2022-05-22 20:07:01 +02:00
color cyan "\<(True|False|None)\>"
2022-05-21 23:23:06 +02:00
color white "(\(|\)|,|\.|->)"
2022-05-22 20:07:01 +02:00
# Number values
2022-05-21 23:23:06 +02:00
color brightmagenta "([0-9]|[0-9]+\.[0-9]+|self)"
2022-05-22 20:07:01 +02:00
# Strings
color yellow "'([^'\]|\\.)*'|"([^"\]|\\.)*"|'''|""""
# Comments
color grey "(^|[[:blank:]])#.*"
color grey start="'''([^'),]|$)" end="(^|[^(\])'''"
color grey start=""""([^"),]|$)" end="(^|[^(\])""""
2022-05-23 00:19:22 +02:00
# Redundant spaces
color brightred,brightred "[[:space:]]+$"