From b9c02d48ab0801c77b7249be051260b7db05ce60 Mon Sep 17 00:00:00 2001 From: notquiteamonad <44178347+notquiteamonad@users.noreply.github.com> Date: Mon, 23 Aug 2021 11:06:14 +0100 Subject: [PATCH] Fix regex for nix paths --- rc/filetype/nix.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/filetype/nix.kak b/rc/filetype/nix.kak index 87d4fc32..6cc12db6 100644 --- a/rc/filetype/nix.kak +++ b/rc/filetype/nix.kak @@ -79,7 +79,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/_+.]*/[-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