From 4722db710366d1da19138d530936f5a57f62e431 Mon Sep 17 00:00:00 2001 From: nhey Date: Mon, 12 Aug 2019 18:07:05 +0200 Subject: [PATCH] =?UTF-8?q?Highlight=20parenthesized=20paths.=20Also=20cha?= =?UTF-8?q?nge=20'()'=20to=20'=C2=A7'=20for=20module=20quoting.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rc/filetype/nix.kak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc/filetype/nix.kak b/rc/filetype/nix.kak index b6077739..77073bed 100644 --- a/rc/filetype/nix.kak +++ b/rc/filetype/nix.kak @@ -26,7 +26,7 @@ hook -group nix-highlight global WinSetOption filetype=nix %{ hook -once -always window WinSetOption filetype=.* %{ remove-highlighter window/nix } } -provide-module nix %( +provide-module nix %§ # Highlighters # ‾‾‾‾‾‾‾‾‾‾‾‾ @@ -77,7 +77,7 @@ add-highlighter shared/nix/code/ regex \bor\b 0:operator # override any operators matched before # path: -add-highlighter shared/nix/code/ regex '\s(\.?\.?/[-A-Za-z0-9/_+.]+)[;?]?' 1:meta +add-highlighter shared/nix/code/ regex '\s\(*(\.?\.?/[-A-Za-z0-9/_+.]+)[;?]?' 1:meta # imported path: add-highlighter shared/nix/code/ regex <[-A-Za-z0-9/_+.]+> 0:meta # RFC 2396 URIs can be used without quoting. Strangely, "string" ends URL but ''indented'' one doesn't @@ -112,4 +112,4 @@ define-command -hidden nix-indent-on-new-line %< > > -) +§