summaryrefslogtreecommitdiff
path: root/rc/filetype/python.kak
diff options
context:
space:
mode:
Diffstat (limited to 'rc/filetype/python.kak')
-rw-r--r--rc/filetype/python.kak2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc/filetype/python.kak b/rc/filetype/python.kak
index 7c4472a3..91dcb1ef 100644
--- a/rc/filetype/python.kak
+++ b/rc/filetype/python.kak
@@ -130,7 +130,7 @@ evaluate-commands %sh{
add-highlighter shared/python/code/ regex '\b($(join "${keywords}" '|'))\b' 0:keyword
add-highlighter shared/python/code/ regex '\b($(join "${functions}" '|'))\b\(' 1:builtin
add-highlighter shared/python/code/ regex '\b($(join "${types}" '|'))\b' 0:type
- add-highlighter shared/python/code/ regex '@[\w_]+\b' 0:attribute
+ add-highlighter shared/python/code/ regex '^\h*(@[\w_.]+))' 1:attribute
"
}