nano: improve uci coloring of unterminated strings
authorHannu Nyman <redacted>
Sat, 14 Mar 2026 07:48:16 +0000 (09:48 +0200)
committerHannu Nyman <redacted>
Sat, 14 Mar 2026 07:51:38 +0000 (09:51 +0200)
Improve the uci file coloring with nano-full.
Show unterminated strings more clearly (lightmagenta vs. white)

Signed-off-by: Hannu Nyman <redacted>
utils/nano/Makefile
utils/nano/files/uci.nanorc

index b85ad2e6baf8d590a2007da60a3dcef71cd045ce..4ce6a8386edc52fab52d4820424d0c7b70058cc9 100644 (file)
@@ -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
index 8d27836fc0edcb0ba2110490a3858e4f9406aa8a..cfcb48bd841baeab0c81322bb9f407a7d652f857 100644 (file)
@@ -9,6 +9,9 @@ color green "\<(package|config|option|list)\>"
 # Comments.
 color cyan "(^|[[:blank:]])#.*"
 
+# Unterminated strings.
+color lightmagenta ""([^"\]|\\.)*[^"\]|'([^'\]|\\.)*[^'\]"
+
 # Strings.
 color yellow ""([^"\]|\\.)*"|'([^'\]|\\.)*'"
 
git clone https://git.99rst.org/PROJECT