summaryrefslogtreecommitdiff
path: root/rc
diff options
context:
space:
mode:
authorAndrés González <gonzalez.af@gmail.com>2022-04-03 11:55:45 -0400
committerAndrés González <gonzalez.af@gmail.com>2022-04-03 11:55:45 -0400
commit5fdff9a8ff152b62f93fcacec63e5f5c52b82b74 (patch)
tree28c111fefff614104873d6754fdc81d031c6a44a /rc
parent1b9929bb735ba8c82a76d80966356645fb867ce9 (diff)
explicitely name highlighters, remove comments that described them
Diffstat (limited to 'rc')
-rw-r--r--rc/filetype/twig.kak16
1 files changed, 5 insertions, 11 deletions
diff --git a/rc/filetype/twig.kak b/rc/filetype/twig.kak
index 21f8cebc..6df90fbe 100644
--- a/rc/filetype/twig.kak
+++ b/rc/filetype/twig.kak
@@ -50,21 +50,15 @@ add-highlighter shared/twig/delim/double_string region '"' (?<!\\)(\\\\)*" fill
add-highlighter shared/twig/delim/single_string region "'" (?<!\\)(\\\\)*' fill string
add-highlighter shared/twig/delim/base/ regex (\w+)\h= 1:variable
-# functions
-add-highlighter shared/twig/delim/base/ regex \b(\w+)\( 1:function
+add-highlighter shared/twig/delim/base/functions regex \b(\w+)\( 1:function
-# filters
-add-highlighter shared/twig/delim/base/ regex \b(abs|batch|capitalize|column|convert_encoding|country_name|currency_name|currency_symbol|data_uri|date|date_modify|default|e|escape|filter|first|format|format_currency|format_date|format_datetime|format_number|format_time|html_to_markdown|inline_css|inky_to_html|join|json_encode|keys|language_name|last|length|locale_name|lower|map|markdown_to_html|merge|nl2br|number_format|raw|reduce|replace|reverse|round|slice|slug|sort|spaceless|split|striptags|timezone_name|title|trim|u|upper|url_encode)(\()?\b 1:operator
+add-highlighter shared/twig/delim/base/filters regex \b(abs|batch|capitalize|column|convert_encoding|country_name|currency_name|currency_symbol|data_uri|date|date_modify|default|e|escape|filter|first|format|format_currency|format_date|format_datetime|format_number|format_time|html_to_markdown|inline_css|inky_to_html|join|json_encode|keys|language_name|last|length|locale_name|lower|map|markdown_to_html|merge|nl2br|number_format|raw|reduce|replace|reverse|round|slice|slug|sort|spaceless|split|striptags|timezone_name|title|trim|u|upper|url_encode)(\()?\b 1:operator
-# tags
-add-highlighter shared/twig/delim/base/ regex \b((extends|deprecated|do|flush|import|from|elseif|else|include|set|use)|(end)?(apply|autoescape|block|cache|embed|for|if|macro|sandbox|set|verbatim|with))\b 0:keyword 0:+i
+add-highlighter shared/twig/delim/base/tags regex \b((extends|deprecated|do|flush|import|from|elseif|else|include|set|use)|(end)?(apply|autoescape|block|cache|embed|for|if|macro|sandbox|set|verbatim|with))\b 0:keyword 0:+i
-# logic
-# and or not in is matches
-# delimiters
-add-highlighter shared/twig/delim/base/ regex (\{[%]|[%]\}) 0:function
-add-highlighter shared/twig/delim/base/ regex (\{\{|\}\}) 0:operator
+add-highlighter shared/twig/delim/base/delimiter_code regex (\{[%]|[%]\}) 0:function
+add-highlighter shared/twig/delim/base/delimiter_output regex (\{\{|\}\}) 0:operator
# Commands
# ‾‾‾‾‾‾‾‾