diff options
| author | Frank LENORMAND <lenormf@gmail.com> | 2015-07-30 17:59:22 +0300 |
|---|---|---|
| committer | Frank LENORMAND <lenormf@gmail.com> | 2015-07-30 17:59:22 +0300 |
| commit | ddaa31a300e0cba6989c23def176fefdf1ab1b95 (patch) | |
| tree | 04afb37807b686a08d87eae63e5ba23113af5865 /rc/python.kak | |
| parent | 19c52c3d6164553a16614f1366b8641426803b0c (diff) | |
Highlight python types, when they are not used as constructors
Diffstat (limited to 'rc/python.kak')
| -rw-r--r-- | rc/python.kak | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/rc/python.kak b/rc/python.kak index 393c3f92..94d159ab 100644 --- a/rc/python.kak +++ b/rc/python.kak @@ -31,6 +31,8 @@ addhl -group /python/code regex \<(import|from)\> 0:meta # Keyword list is collected using `keyword.kwlist` from `keyword` addhl -group /python/code regex \<(and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|global|if|in|is|lambda|not|or|pass|print|raise|return|try|while|with|yield)\> 0:keyword +# Highlight types, when they are not used as constructors +addhl -group /python/code regex \<(buffer|bytearray|complex|dict|file|float|frozenset|int|list|long|memoryview|set|str|tuple|unicode|xrange)\>[^(] 0:type # Commands # ‾‾‾‾‾‾‾‾ |
