syntax: python: colorize decorators specially
Decorators are documented at https://peps.python.org/pep-0318/. Signed-off-by: Matteo Raso <matteo_luigi_raso@protonmail.com> Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
This commit is contained in:
parent
2fd7888a51
commit
c374c773ad
@ -24,6 +24,9 @@ color brightcyan "\<(exec|print)([[:blank:]]|$)"
|
|||||||
# Special values.
|
# Special values.
|
||||||
color brightmagenta "\<(False|None|True)\>"
|
color brightmagenta "\<(False|None|True)\>"
|
||||||
|
|
||||||
|
# Decorators.
|
||||||
|
color cyan "@[[:alpha:]_][[:alnum:]_.]*"
|
||||||
|
|
||||||
# Mono-quoted strings.
|
# Mono-quoted strings.
|
||||||
color brightgreen "'([^'\]|\\.)*'|"([^"\]|\\.)*"|'''|""""
|
color brightgreen "'([^'\]|\\.)*'|"([^"\]|\\.)*"|'''|""""
|
||||||
color normal "'''|""""
|
color normal "'''|""""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user