style tweak in the static words definitions

This commit is contained in:
Maxime Coste 2016-04-09 10:20:13 +01:00
parent a49685d996
commit a026ebf298
7 changed files with 7 additions and 27 deletions

View File

@ -54,11 +54,7 @@ addhl -group /dlang/code regex "\<(this)\>\s*[^(]" 1:value
# Add the language's grammar to the static completion list # Add the language's grammar to the static completion list
printf %s "hook global WinSetOption filetype=dlang %{ printf %s "hook global WinSetOption filetype=dlang %{
set window static_words '${keywords}' set window static_words '${keywords}:${attributes}:${types}:${values}:${decorators}'
set -add window static_words '${attributes}'
set -add window static_words '${types}'
set -add window static_words '${values}'
set -add window static_words '${decorators}'
}" | sed 's,|,:,g' }" | sed 's,|,:,g'
# Highlight keywords # Highlight keywords

View File

@ -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 # Add the language's grammar to the static completion list
printf %s "hook global WinSetOption filetype=golang %{ printf %s "hook global WinSetOption filetype=golang %{
set window static_words '${keywords}' set window static_words '${keywords}:${attributes}:${types}:${values}'
set -add window static_words '${attributes}'
set -add window static_words '${types}'
set -add window static_words '${values}'
}" | sed 's,|,:,g' }" | sed 's,|,:,g'
# Highlight keywords # Highlight keywords

View File

@ -45,9 +45,7 @@ addhl -group /perl/comment fill comment
# Add the language's grammar to the static completion list # Add the language's grammar to the static completion list
printf %s "hook global WinSetOption filetype=perl %{ printf %s "hook global WinSetOption filetype=perl %{
set window static_words '${keywords}' set window static_words '${keywords}:${attributes}:${values}'
set -add window static_words '${attributes}'
set -add window static_words '${values}'
}" | sed 's,|,:,g' }" | sed 's,|,:,g'
# Highlight keywords # Highlight keywords

View File

@ -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 # Add the language's grammar to the static completion list
printf %s "hook global WinSetOption filetype=ruby %{ printf %s "hook global WinSetOption filetype=ruby %{
set window static_words '${keywords}' set window static_words '${keywords}:${attributes}:${values}:${meta}'
set -add window static_words '${attributes}'
set -add window static_words '${values}'
set -add window static_words '${meta}'
}" | sed 's,|,:,g' }" | sed 's,|,:,g'
# Highlight keywords # Highlight keywords

View File

@ -166,11 +166,7 @@ addhl -group /objc/code regex %{\<-?\d+[fdiu]?|'((\\.)?|[^'\\])'} 0:value
# Add the language's grammar to the static completion list # Add the language's grammar to the static completion list
printf %s "hook global WinSetOption filetype=objc %{ printf %s "hook global WinSetOption filetype=objc %{
set window static_words '${keywords}' set window static_words '${keywords}:${attributes}:${types}:${values}:${decorators}'
set -add window static_words '${attributes}'
set -add window static_words '${types}'
set -add window static_words '${values}'
set -add window static_words '${decorators}'
}" | sed 's,|,:,g' }" | sed 's,|,:,g'
# Highlight keywords # Highlight keywords

View File

@ -17,8 +17,7 @@ addhl -group / regions -default code kakrc \
# Add the language's grammar to the static completion list # Add the language's grammar to the static completion list
printf %s "hook global WinSetOption filetype=kak %{ printf %s "hook global WinSetOption filetype=kak %{
set window static_words '${keywords}' set window static_words '${keywords}:${values}'
set -add window static_words '${values}'
}" | sed 's,|,:,g' }" | sed 's,|,:,g'
# Highlight keywords # Highlight keywords

View File

@ -36,10 +36,7 @@ addhl -group /python/comment fill comment
# Add the language's grammar to the static completion list # Add the language's grammar to the static completion list
printf %s "hook global WinSetOption filetype=python %{ printf %s "hook global WinSetOption filetype=python %{
set window static_words '${values}' set window static_words '${values}:${meta}:${keywords}:${types}'
set -add window static_words '${meta}'
set -add window static_words '${keywords}'
set -add window static_words '${types}'
}" | sed 's,|,:,g' }" | sed 's,|,:,g'
# Highlight keywords # Highlight keywords