rc/: Replace simple uses of sed with tr
This commit is contained in:
parent
536fa29ed5
commit
f8861734cf
|
@ -64,7 +64,7 @@ add-highlighter shared/d/code regex "\b(this)\b\s*[^(]" 1:value
|
|||
# Add the language's grammar to the static completion list
|
||||
printf %s\\n "hook global WinSetOption filetype=d %{
|
||||
set-option window static_words '${keywords}:${attributes}:${types}:${values}:${decorators}:${properties}'
|
||||
}" | sed 's,|,:,g'
|
||||
}" | tr '|' ':'
|
||||
|
||||
# Highlight keywords
|
||||
printf %s "
|
||||
|
|
|
@ -38,7 +38,7 @@ add-highlighter shared/go/code regex %{-?([0-9]*\.(?!0[xX]))?\b([0-9]+|0[xX][0-9
|
|||
# Add the language's grammar to the static completion list
|
||||
printf %s\\n "hook global WinSetOption filetype=go %{
|
||||
set-option window static_words '${keywords}:${attributes}:${types}:${values}:${functions}'
|
||||
}" | sed 's,|,:,g'
|
||||
}" | tr '|' ':'
|
||||
|
||||
# Highlight keywords
|
||||
printf %s "
|
||||
|
|
|
@ -42,7 +42,7 @@ add-highlighter shared/perl/comment fill comment
|
|||
# Add the language's grammar to the static completion list
|
||||
printf %s\\n "hook global WinSetOption filetype=perl %{
|
||||
set-option window static_words '${keywords}:${attributes}:${values}'
|
||||
}" | sed 's,|,:,g'
|
||||
}" | tr '|' ':'
|
||||
|
||||
# Highlight keywords
|
||||
printf %s "
|
||||
|
|
|
@ -63,7 +63,7 @@ add-highlighter shared/ruby/code regex \b([A-Za-z]\w*:(?!:))|([$@][A-Za-z]\w*)|(
|
|||
# Add the language's grammar to the static completion list
|
||||
printf %s\\n "hook global WinSetOption filetype=ruby %{
|
||||
set-option window static_words '${keywords}:${attributes}:${values}:${meta}'
|
||||
}" | sed 's,|,:,g'
|
||||
}" | tr '|' ':'
|
||||
|
||||
# Highlight keywords
|
||||
printf %s "
|
||||
|
|
|
@ -81,7 +81,7 @@ add-highlighter shared/ regions -default code sql \
|
|||
# Add the language's grammar to the static completion list
|
||||
printf %s\\n "hook global WinSetOption filetype=sql %{
|
||||
set-option window static_words '${keywords}:${operators}:${functions}:${data_types}:${data_types_fn}:NULL'
|
||||
}" | sed 's,|,:,g'
|
||||
}" | tr '|' ':'
|
||||
|
||||
# Highlight keywords
|
||||
printf %s "
|
||||
|
|
|
@ -25,7 +25,7 @@ add-highlighter shared/makefile/content regex [+?:]= 0:operator
|
|||
# Add the language's grammar to the static completion list
|
||||
printf %s\\n "hook global WinSetOption filetype=makefile %{
|
||||
set-option window static_words '${keywords}'
|
||||
}" | sed 's,|,:,g'
|
||||
}" | tr '|' ':'
|
||||
|
||||
# Highlight keywords
|
||||
printf %s "add-highlighter shared/makefile/content regex \b(${keywords})\b 0:keyword"
|
||||
|
|
|
@ -104,7 +104,7 @@ add-highlighter shared/python/comment fill comment
|
|||
# Add the language's grammar to the static completion list
|
||||
printf %s\\n "hook global WinSetOption filetype=python %{
|
||||
set-option window static_words '${values}:${meta}:${attributes}:${methods}:${exceptions}:${keywords}:${types}:${functions}'
|
||||
}" | sed 's,|,:,g'
|
||||
}" | tr '|' ':'
|
||||
|
||||
# Highlight keywords
|
||||
printf %s "
|
||||
|
|
|
@ -24,7 +24,7 @@ add-highlighter shared/sh/heredoc fill string
|
|||
# Add the language's grammar to the static completion list
|
||||
printf %s\\n "hook global WinSetOption filetype=sh %{
|
||||
set-option window static_words '${keywords}'
|
||||
}" | sed 's,|,:,g'
|
||||
}" | tr '|' ':'
|
||||
|
||||
# Highlight keywords
|
||||
printf %s "add-highlighter shared/sh/code regex \b(${keywords})\b 0:keyword"
|
||||
|
|
|
@ -26,7 +26,7 @@ add-highlighter shared/ regions -default code dockerfile \
|
|||
# Add the language's grammar to the static completion list
|
||||
printf %s\\n "hook global WinSetOption filetype=dockerfile %{
|
||||
set window static_words 'ONBUILD|${keywords}'
|
||||
}" | sed 's,|,:,g'
|
||||
}" | tr '|' ':'
|
||||
|
||||
# Highlight keywords
|
||||
printf %s "
|
||||
|
|
|
@ -41,7 +41,7 @@ add-highlighter shared/nim/code regex %{'[^'\n]'} 0:string
|
|||
# Add the language's grammar to the static completion list
|
||||
printf %s\\n "hook global WinSetOption filetype=nim %{
|
||||
set-option window static_words '${keywords}:${types}:${values}'
|
||||
}" | sed 's,|,:,g'
|
||||
}" | tr '|' ':' ':'
|
||||
|
||||
# Highlight keywords
|
||||
printf %s "
|
||||
|
|
|
@ -39,7 +39,7 @@ add-highlighter shared/pony/comment fill comment
|
|||
static_words="${static_words}::${struct}"
|
||||
printf %s\\n "hook global WinSetOption filetype=pony %{
|
||||
set-option window static_words '${static_words}'
|
||||
}" | sed 's,|,:,g'
|
||||
}" | tr '|' ':'
|
||||
|
||||
# Highlight keywords
|
||||
printf %s "
|
||||
|
|
Loading…
Reference in New Issue
Block a user