Compare commits
2 Commits
b277d9f3b4
...
d72ac90edc
Author | SHA1 | Date |
---|---|---|
Mal | d72ac90edc | |
Mal | 4237bc545d |
|
@ -19,19 +19,19 @@ color orange "function \w+\(.*\)"
|
||||||
color cyan "\w+\("
|
color cyan "\w+\("
|
||||||
|
|
||||||
# Function/method names on definitions
|
# Function/method names on definitions
|
||||||
color green "function \w+\("
|
color green "(function|static) \w+\("
|
||||||
color green "@\w+"
|
color green "@\w+"
|
||||||
color green "^[[:blank:]]+\w+\(.*(\)| \{)$"
|
color green "^[[:blank:]]+\w+\(.*(\)| \{)$"
|
||||||
|
|
||||||
# Parameters inside method definitions
|
# Parameters inside method definitions
|
||||||
color orange "\([a-zA-Z_0-9,= ]+\)( *\{|$)"
|
color orange "\([a-zA-Z_0-9,= '#]+\)( *\{|$)"
|
||||||
color white " \([a-zA-Z_0-9,= ]+\)( *\{|$)"
|
color white " \([a-zA-Z_0-9,= ]+\)( *\{|$)"
|
||||||
|
|
||||||
# Class initialization
|
# Class initialization
|
||||||
color white "new \w+\("
|
color white "new \w+\("
|
||||||
|
|
||||||
# Statements
|
# Statements
|
||||||
color brightcyan "\<(class|function|extends|import|export|default|from|new|var|let|const|return|for|while|in|of|if|elseif|else|throw|continue|break|try|catch|switch|static|typeof|do|async|await)\>"
|
color brightcyan "\<(class|function|extends|import|export|default|from|new|var|let|const|return|for|while|in|of|if|elseif|else|throw|continue|break|try|catch|switch|case|static|typeof|do|async|await)\>"
|
||||||
|
|
||||||
# Operators
|
# Operators
|
||||||
color red "(=|·|\/|\+|-|\*|\!|>|<|:|\?|&|\|)"
|
color red "(=|·|\/|\+|-|\*|\!|>|<|:|\?|&|\|)"
|
||||||
|
|
|
@ -24,6 +24,9 @@ color orange "def \w+\(.*\)( *-> *\w+){0,1}:"
|
||||||
color green "def \w+\("
|
color green "def \w+\("
|
||||||
color green "@\w+"
|
color green "@\w+"
|
||||||
|
|
||||||
|
# Import modules
|
||||||
|
color magenta "(import|from) \w+"
|
||||||
|
|
||||||
# Statements
|
# 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)\>"
|
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)\>"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue