From 93e64b4541a9b9c4fb135c9bce2ec930076365f7 Mon Sep 17 00:00:00 2001 From: tawsi-melek <34323926+tawsi-melek@users.github.com> Date: Thu, 8 Aug 2019 21:17:55 +0200 Subject: [PATCH] Some more improvements * Fix keywords in comments being highlighted * Highlight Nim's escape sequences for strings * Highlight common comment tags * Add on/off to the highlighted boolean values * Remove redundant regex highlighter for comments * Fix autoindent indenting lines more than it should --- rc/filetype/nim.kak | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/rc/filetype/nim.kak b/rc/filetype/nim.kak index a5dd3e3e..2917c6c5 100644 --- a/rc/filetype/nim.kak +++ b/rc/filetype/nim.kak @@ -37,8 +37,18 @@ add-highlighter shared/nim regions add-highlighter shared/nim/code default-region group add-highlighter shared/nim/triple_string region '([A-Za-z](_?\w)*)?"""' '"""(?!")' fill string add-highlighter shared/nim/raw_string region [A-Za-z](_?[A-Za-z])*" (? s \h+$ d } # indent after line ending with enum, tuple, object, type, import, export, const, let, var, ':' or '=' - try %{ exec -draft k x (:|=|enum|tuple|object|const|let|var|import|export|type)$ j } + try %{ exec -draft k (:|=|enum|tuple|object|const|let|var|import|export|type)$ j } } }