summaryrefslogtreecommitdiff
path: root/rc/core/python.kak
diff options
context:
space:
mode:
authorFrank LENORMAND <lenormf@gmail.com>2016-03-17 15:30:14 +0200
committerFrank LENORMAND <lenormf@gmail.com>2016-03-17 15:32:32 +0200
commit4bb5658206778b68110d7d00bba6703e3b838e52 (patch)
tree2771da64ad85d000e70a1b655a5b347c16bd1970 /rc/core/python.kak
parent3079d2a7e328309e3d2b298d573020c6bf5b0aca (diff)
Replace non-POSIX here-strings and calls to `echo`
Diffstat (limited to 'rc/core/python.kak')
-rw-r--r--rc/core/python.kak8
1 files changed, 4 insertions, 4 deletions
diff --git a/rc/core/python.kak b/rc/core/python.kak
index 380c43c4..f378d7a6 100644
--- a/rc/core/python.kak
+++ b/rc/core/python.kak
@@ -35,22 +35,22 @@ addhl -group /python/comment fill comment
types="bool|buffer|bytearray|complex|dict|file|float|frozenset|int|list|long|memoryview|object|set|str|tuple|unicode|xrange"
# Add the language's grammar to the static completion list
- sed 's,|,:,g' <<< "hook global WinSetOption filetype=python %{
+ printf %s "hook global WinSetOption filetype=python %{
set window static_words '${values}'
set -add window static_words '${meta}'
set -add window static_words '${keywords}'
set -add window static_words '${types}'
- }"
+ }" | sed 's,|,:,g'
# Highlight keywords
- echo "
+ 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
"
# Highlight types, when they are not used as constructors
- echo "addhl -group /python/code regex '\<(${types})\>[^(]' 1:type"
+ printf %s "addhl -group /python/code regex '\<(${types})\>[^(]' 1:type"
}
# Commands