1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-15 22:23:54 +03:00

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
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

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
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

View File

@ -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

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
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

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
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

View File

@ -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

View File

@ -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