summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2016-04-09 10:20:13 +0100
committerMaxime Coste <frrrwww@gmail.com>2016-04-09 10:20:13 +0100
commita026ebf298d7c12d9bb9a823924b1a38db28d74d (patch)
tree97620f43d3bbdc5aed02833b3205c8fee1485efc
parenta49685d996cd76dc1b91c8872290ce8dc61f38dc (diff)
style tweak in the static words definitions
-rw-r--r--rc/base/dlang.kak6
-rw-r--r--rc/base/golang.kak5
-rw-r--r--rc/base/perl.kak4
-rw-r--r--rc/base/ruby.kak5
-rw-r--r--rc/core/c-family.kak6
-rw-r--r--rc/core/kakrc.kak3
-rw-r--r--rc/core/python.kak5
7 files changed, 7 insertions, 27 deletions
diff --git a/rc/base/dlang.kak b/rc/base/dlang.kak
index 25e20fc5..819775ab 100644
--- a/rc/base/dlang.kak
+++ b/rc/base/dlang.kak
@@ -54,11 +54,7 @@ addhl -group /dlang/code regex "\<(this)\>\s*[^(]" 1:value
# Add the language's grammar to the static completion list
printf %s "hook global WinSetOption filetype=dlang %{
- set window static_words '${keywords}'
- set -add window static_words '${attributes}'
- set -add window static_words '${types}'
- set -add window static_words '${values}'
- set -add window static_words '${decorators}'
+ set window static_words '${keywords}:${attributes}:${types}:${values}:${decorators}'
}" | sed 's,|,:,g'
# Highlight keywords
diff --git a/rc/base/golang.kak b/rc/base/golang.kak
index 1d2c994b..b66f0a86 100644
--- a/rc/base/golang.kak
+++ b/rc/base/golang.kak
@@ -37,10 +37,7 @@ addhl -group /golang/code regex %{-?([0-9]*\.(?!0[xX]))?\<([0-9]+|0[xX][0-9a-fA-
# Add the language's grammar to the static completion list
printf %s "hook global WinSetOption filetype=golang %{
- set window static_words '${keywords}'
- set -add window static_words '${attributes}'
- set -add window static_words '${types}'
- set -add window static_words '${values}'
+ set window static_words '${keywords}:${attributes}:${types}:${values}'
}" | sed 's,|,:,g'
# Highlight keywords
diff --git a/rc/base/perl.kak b/rc/base/perl.kak
index 4ba6466d..9237bcf9 100644
--- a/rc/base/perl.kak
+++ b/rc/base/perl.kak
@@ -45,9 +45,7 @@ addhl -group /perl/comment fill comment
# Add the language's grammar to the static completion list
printf %s "hook global WinSetOption filetype=perl %{
- set window static_words '${keywords}'
- set -add window static_words '${attributes}'
- set -add window static_words '${values}'
+ set window static_words '${keywords}:${attributes}:${values}'
}" | sed 's,|,:,g'
# Highlight keywords
diff --git a/rc/base/ruby.kak b/rc/base/ruby.kak
index 7dc98084..d1b025bf 100644
--- a/rc/base/ruby.kak
+++ b/rc/base/ruby.kak
@@ -66,10 +66,7 @@ addhl -group /ruby/code regex \<([A-Za-z]\w*:)|([$@][A-Za-z]\w*)|(\W\K:[A-Za-z]\
# Add the language's grammar to the static completion list
printf %s "hook global WinSetOption filetype=ruby %{
- set window static_words '${keywords}'
- set -add window static_words '${attributes}'
- set -add window static_words '${values}'
- set -add window static_words '${meta}'
+ set window static_words '${keywords}:${attributes}:${values}:${meta}'
}" | sed 's,|,:,g'
# Highlight keywords
diff --git a/rc/core/c-family.kak b/rc/core/c-family.kak
index 345ba3db..bce605a4 100644
--- a/rc/core/c-family.kak
+++ b/rc/core/c-family.kak
@@ -166,11 +166,7 @@ addhl -group /objc/code regex %{\<-?\d+[fdiu]?|'((\\.)?|[^'\\])'} 0:value
# Add the language's grammar to the static completion list
printf %s "hook global WinSetOption filetype=objc %{
- set window static_words '${keywords}'
- set -add window static_words '${attributes}'
- set -add window static_words '${types}'
- set -add window static_words '${values}'
- set -add window static_words '${decorators}'
+ set window static_words '${keywords}:${attributes}:${types}:${values}:${decorators}'
}" | sed 's,|,:,g'
# Highlight keywords
diff --git a/rc/core/kakrc.kak b/rc/core/kakrc.kak
index 0f7612f7..63195f46 100644
--- a/rc/core/kakrc.kak
+++ b/rc/core/kakrc.kak
@@ -17,8 +17,7 @@ addhl -group / regions -default code kakrc \
# Add the language's grammar to the static completion list
printf %s "hook global WinSetOption filetype=kak %{
- set window static_words '${keywords}'
- set -add window static_words '${values}'
+ set window static_words '${keywords}:${values}'
}" | sed 's,|,:,g'
# Highlight keywords
diff --git a/rc/core/python.kak b/rc/core/python.kak
index f378d7a6..dabdd52b 100644
--- a/rc/core/python.kak
+++ b/rc/core/python.kak
@@ -36,10 +36,7 @@ addhl -group /python/comment fill comment
# Add the language's grammar to the static completion list
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}'
+ set window static_words '${values}:${meta}:${keywords}:${types}'
}" | sed 's,|,:,g'
# Highlight keywords