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 <hannu.nyman@iki.fi>
This commit is contained in:
Hannu Nyman
2026-03-14 09:48:16 +02:00
parent 15500a07f8
commit a268b500d9
2 changed files with 4 additions and 1 deletions

View 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

View File

@@ -9,6 +9,9 @@ color green "\<(package|config|option|list)\>"
# Comments.
color cyan "(^|[[:blank:]])#.*"
# Unterminated strings.
color lightmagenta ""([^"\]|\\.)*[^"\]|'([^'\]|\\.)*[^'\]"
# Strings.
color yellow ""([^"\]|\\.)*"|'([^'\]|\\.)*'"