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
|
# Add the language's grammar to the static completion list
|
||||||
printf %s\\n "hook global WinSetOption filetype=d %{
|
printf %s\\n "hook global WinSetOption filetype=d %{
|
||||||
set-option window static_words '${keywords}:${attributes}:${types}:${values}:${decorators}:${properties}'
|
set-option window static_words '${keywords}:${attributes}:${types}:${values}:${decorators}:${properties}'
|
||||||
}" | sed 's,|,:,g'
|
}" | tr '|' ':'
|
||||||
|
|
||||||
# Highlight keywords
|
# Highlight keywords
|
||||||
printf %s "
|
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
|
# Add the language's grammar to the static completion list
|
||||||
printf %s\\n "hook global WinSetOption filetype=go %{
|
printf %s\\n "hook global WinSetOption filetype=go %{
|
||||||
set-option window static_words '${keywords}:${attributes}:${types}:${values}:${functions}'
|
set-option window static_words '${keywords}:${attributes}:${types}:${values}:${functions}'
|
||||||
}" | sed 's,|,:,g'
|
}" | tr '|' ':'
|
||||||
|
|
||||||
# Highlight keywords
|
# Highlight keywords
|
||||||
printf %s "
|
printf %s "
|
||||||
|
|
|
@ -42,7 +42,7 @@ add-highlighter shared/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\\n "hook global WinSetOption filetype=perl %{
|
printf %s\\n "hook global WinSetOption filetype=perl %{
|
||||||
set-option window static_words '${keywords}:${attributes}:${values}'
|
set-option window static_words '${keywords}:${attributes}:${values}'
|
||||||
}" | sed 's,|,:,g'
|
}" | tr '|' ':'
|
||||||
|
|
||||||
# Highlight keywords
|
# Highlight keywords
|
||||||
printf %s "
|
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
|
# Add the language's grammar to the static completion list
|
||||||
printf %s\\n "hook global WinSetOption filetype=ruby %{
|
printf %s\\n "hook global WinSetOption filetype=ruby %{
|
||||||
set-option window static_words '${keywords}:${attributes}:${values}:${meta}'
|
set-option window static_words '${keywords}:${attributes}:${values}:${meta}'
|
||||||
}" | sed 's,|,:,g'
|
}" | tr '|' ':'
|
||||||
|
|
||||||
# Highlight keywords
|
# Highlight keywords
|
||||||
printf %s "
|
printf %s "
|
||||||
|
|
|
@ -81,7 +81,7 @@ add-highlighter shared/ regions -default code sql \
|
||||||
# Add the language's grammar to the static completion list
|
# Add the language's grammar to the static completion list
|
||||||
printf %s\\n "hook global WinSetOption filetype=sql %{
|
printf %s\\n "hook global WinSetOption filetype=sql %{
|
||||||
set-option window static_words '${keywords}:${operators}:${functions}:${data_types}:${data_types_fn}:NULL'
|
set-option window static_words '${keywords}:${operators}:${functions}:${data_types}:${data_types_fn}:NULL'
|
||||||
}" | sed 's,|,:,g'
|
}" | tr '|' ':'
|
||||||
|
|
||||||
# Highlight keywords
|
# Highlight keywords
|
||||||
printf %s "
|
printf %s "
|
||||||
|
|
|
@ -25,7 +25,7 @@ add-highlighter shared/makefile/content regex [+?:]= 0:operator
|
||||||
# Add the language's grammar to the static completion list
|
# Add the language's grammar to the static completion list
|
||||||
printf %s\\n "hook global WinSetOption filetype=makefile %{
|
printf %s\\n "hook global WinSetOption filetype=makefile %{
|
||||||
set-option window static_words '${keywords}'
|
set-option window static_words '${keywords}'
|
||||||
}" | sed 's,|,:,g'
|
}" | tr '|' ':'
|
||||||
|
|
||||||
# Highlight keywords
|
# Highlight keywords
|
||||||
printf %s "add-highlighter shared/makefile/content regex \b(${keywords})\b 0:keyword"
|
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
|
# Add the language's grammar to the static completion list
|
||||||
printf %s\\n "hook global WinSetOption filetype=python %{
|
printf %s\\n "hook global WinSetOption filetype=python %{
|
||||||
set-option window static_words '${values}:${meta}:${attributes}:${methods}:${exceptions}:${keywords}:${types}:${functions}'
|
set-option window static_words '${values}:${meta}:${attributes}:${methods}:${exceptions}:${keywords}:${types}:${functions}'
|
||||||
}" | sed 's,|,:,g'
|
}" | tr '|' ':'
|
||||||
|
|
||||||
# Highlight keywords
|
# Highlight keywords
|
||||||
printf %s "
|
printf %s "
|
||||||
|
|
|
@ -24,7 +24,7 @@ add-highlighter shared/sh/heredoc fill string
|
||||||
# Add the language's grammar to the static completion list
|
# Add the language's grammar to the static completion list
|
||||||
printf %s\\n "hook global WinSetOption filetype=sh %{
|
printf %s\\n "hook global WinSetOption filetype=sh %{
|
||||||
set-option window static_words '${keywords}'
|
set-option window static_words '${keywords}'
|
||||||
}" | sed 's,|,:,g'
|
}" | tr '|' ':'
|
||||||
|
|
||||||
# Highlight keywords
|
# Highlight keywords
|
||||||
printf %s "add-highlighter shared/sh/code regex \b(${keywords})\b 0:keyword"
|
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
|
# Add the language's grammar to the static completion list
|
||||||
printf %s\\n "hook global WinSetOption filetype=dockerfile %{
|
printf %s\\n "hook global WinSetOption filetype=dockerfile %{
|
||||||
set window static_words 'ONBUILD|${keywords}'
|
set window static_words 'ONBUILD|${keywords}'
|
||||||
}" | sed 's,|,:,g'
|
}" | tr '|' ':'
|
||||||
|
|
||||||
# Highlight keywords
|
# Highlight keywords
|
||||||
printf %s "
|
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
|
# Add the language's grammar to the static completion list
|
||||||
printf %s\\n "hook global WinSetOption filetype=nim %{
|
printf %s\\n "hook global WinSetOption filetype=nim %{
|
||||||
set-option window static_words '${keywords}:${types}:${values}'
|
set-option window static_words '${keywords}:${types}:${values}'
|
||||||
}" | sed 's,|,:,g'
|
}" | tr '|' ':' ':'
|
||||||
|
|
||||||
# Highlight keywords
|
# Highlight keywords
|
||||||
printf %s "
|
printf %s "
|
||||||
|
|
|
@ -39,7 +39,7 @@ add-highlighter shared/pony/comment fill comment
|
||||||
static_words="${static_words}::${struct}"
|
static_words="${static_words}::${struct}"
|
||||||
printf %s\\n "hook global WinSetOption filetype=pony %{
|
printf %s\\n "hook global WinSetOption filetype=pony %{
|
||||||
set-option window static_words '${static_words}'
|
set-option window static_words '${static_words}'
|
||||||
}" | sed 's,|,:,g'
|
}" | tr '|' ':'
|
||||||
|
|
||||||
# Highlight keywords
|
# Highlight keywords
|
||||||
printf %s "
|
printf %s "
|
||||||
|
|
Loading…
Reference in New Issue
Block a user