From: Hannu Nyman Date: Sat, 14 Mar 2026 07:48:16 +0000 (+0200) Subject: nano: improve uci coloring of unterminated strings X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=a268b500d984fd97cc04e3cc000ab786cec76f43;p=openwrt-packages.git nano: improve uci coloring of unterminated strings Improve the uci file coloring with nano-full. Show unterminated strings more clearly (lightmagenta vs. white) Signed-off-by: Hannu Nyman --- diff --git a/utils/nano/Makefile b/utils/nano/Makefile index b85ad2e6b..4ce6a8386 100644 --- a/utils/nano/Makefile +++ b/utils/nano/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=nano PKG_VERSION:=8.7.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=@GNU/nano diff --git a/utils/nano/files/uci.nanorc b/utils/nano/files/uci.nanorc index 8d27836fc..cfcb48bd8 100644 --- a/utils/nano/files/uci.nanorc +++ b/utils/nano/files/uci.nanorc @@ -9,6 +9,9 @@ color green "\<(package|config|option|list)\>" # Comments. color cyan "(^|[[:blank:]])#.*" +# Unterminated strings. +color lightmagenta ""([^"\]|\\.)*[^"\]|'([^'\]|\\.)*[^'\]" + # Strings. color yellow ""([^"\]|\\.)*"|'([^'\]|\\.)*'"