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 } } }