diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-04-21 20:43:17 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-04-21 20:43:17 +0100 |
| commit | 3f74dd2924ca02c26d3338e6ea89a749175afe19 (patch) | |
| tree | 4e4832f54bc86cf1a5e4a7bf80bbb8ef6c36c251 /rc/core/python.kak | |
| parent | de033d2915195dea3469486fc57f4ebf93b09e9b (diff) | |
Remove uses of \< and \>, always use std regex compatible \b
Diffstat (limited to 'rc/core/python.kak')
| -rw-r--r-- | rc/core/python.kak | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rc/core/python.kak b/rc/core/python.kak index dabdd52b..7ba8035f 100644 --- a/rc/core/python.kak +++ b/rc/core/python.kak @@ -41,13 +41,13 @@ addhl -group /python/comment fill comment # Highlight keywords printf %s " - addhl -group /python/code regex '\<(${values})\>' 0:value - addhl -group /python/code regex '\<(${meta})\>' 0:meta - addhl -group /python/code regex '\<(${keywords})\>' 0:keyword + addhl -group /python/code regex '\b(${values})\b' 0:value + addhl -group /python/code regex '\b(${meta})\b' 0:meta + addhl -group /python/code regex '\b(${keywords})\b' 0:keyword " # Highlight types, when they are not used as constructors - printf %s "addhl -group /python/code regex '\<(${types})\>[^(]' 1:type" + printf %s "addhl -group /python/code regex '\b(${types})\b[^(]' 1:type" } # Commands |
