From b12b909d2c0132580485c46fee4654224329edef Mon Sep 17 00:00:00 2001 From: deftdawg Date: Thu, 5 Jun 2025 14:56:06 -0400 Subject: [PATCH] Prevent multi-line comment start unless preceded by whitespace The old code interprets this `cp -ur ${pkg.out}/* $out/` as a comment start and hightlights the rest of the file incorrectly. This change fixes that. --- nix.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix.nanorc b/nix.nanorc index a1ac438..da98b15 100644 --- a/nix.nanorc +++ b/nix.nanorc @@ -53,7 +53,7 @@ color brightred "\$\{[#!]?([-@*#?$!]|[0-9]+|[[:alpha:]_][[:alnum:]_]*)(\[([[:spa # Comments. color cyan "(^|[[:space:]])#.*$" -color cyan start="/\*" end="\*/" +color cyan start="(^|[[:space:]])/\*" end="\*/" # Trailing whitespace. color green "[[:space:]]+$"