From d010b163fadd731c381ba8147abb6cb567446794 Mon Sep 17 00:00:00 2001 From: SolitudeSF Date: Sat, 29 Dec 2018 09:05:11 +0200 Subject: [PATCH] rc: nim - fix prefixed triplestring edgecase --- rc/extra/nim.kak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc/extra/nim.kak b/rc/extra/nim.kak index 9effe343..48645cef 100644 --- a/rc/extra/nim.kak +++ b/rc/extra/nim.kak @@ -13,7 +13,7 @@ hook global BufCreate .*\.nim(s|ble)? %{ add-highlighter shared/nim regions add-highlighter shared/nim/code default-region group -add-highlighter shared/nim/triple_string region '"""' '"""(?!")' fill string +add-highlighter shared/nim/triple_string region '([A-Za-z](_?\w)*)?"""' '"""(?!")' fill string add-highlighter shared/nim/raw_string region '[A-Za-z](_?\w)*"' '(? } # cleanup trailing whitespaces from previous line try %{ exec -draft k s \h+$ d } - # indent after line ending with const, let, var, ':' or '=' - try %{ exec -draft k x (:|=|const|let|var)$ j } + # indent after line ending with type, import, export, const, let, var, ':' or '=' + try %{ exec -draft k x (:|=|const|let|var|import|export|type)$ j } } }