From b23a85e747ce94ec8708a44a3b97f2fc6db3055b Mon Sep 17 00:00:00 2001 From: John Isom Date: Sat, 1 Aug 2020 09:50:27 -0600 Subject: [PATCH] Beautify percent string literals highlighters spacing/indentation --- rc/filetype/crystal.kak | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/rc/filetype/crystal.kak b/rc/filetype/crystal.kak index 922321f1..6d8e7fbe 100644 --- a/rc/filetype/crystal.kak +++ b/rc/filetype/crystal.kak @@ -53,19 +53,20 @@ add-highlighter shared/crystal/string region '"' '(?' regions -add-highlighter shared/crystal/pipe-string region '%Q?\|' '\|' regions +add-highlighter shared/crystal/bracket-string region -recurse '\[' '%Q?\[' '\]' regions +add-highlighter shared/crystal/brace-string region -recurse '\{' '%Q?\{' '\}' regions +add-highlighter shared/crystal/angle-string region -recurse '<' '%Q?<' '>' regions +add-highlighter shared/crystal/pipe-string region '%Q?\|' '\|' regions + # Raw # https://crystal-lang.org/reference/syntax_and_semantics/literals/string.html#percent-string-literals # https://crystal-lang.org/reference/syntax_and_semantics/literals/string.html#percent-string-array-literal # https://crystal-lang.org/reference/syntax_and_semantics/literals/symbol.html#percent-symbol-array-literal add-highlighter shared/crystal/raw-parenthesis-string region -recurse '\(' '%[qwi]\(' '\)' fill string -add-highlighter shared/crystal/raw-bracket-string region -recurse '\[' '%[qwi]\[' '\]' fill string -add-highlighter shared/crystal/raw-brace-string region -recurse '\{' '%[qwi]\{' '\}' fill string -add-highlighter shared/crystal/raw-angle-string region -recurse '<' '%[qwi]<' '>' fill string -add-highlighter shared/crystal/raw-pipe-string region '%[qwi]\|' '\|' fill string +add-highlighter shared/crystal/raw-bracket-string region -recurse '\[' '%[qwi]\[' '\]' fill string +add-highlighter shared/crystal/raw-brace-string region -recurse '\{' '%[qwi]\{' '\}' fill string +add-highlighter shared/crystal/raw-angle-string region -recurse '<' '%[qwi]<' '>' fill string +add-highlighter shared/crystal/raw-pipe-string region '%[qwi]\|' '\|' fill string # Here document # https://crystal-lang.org/reference/syntax_and_semantics/literals/string.html#heredoc