git.99rst.org
/
openwrt-packages.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
15500a0
)
nano: improve uci coloring of unterminated strings
author
Hannu Nyman
<redacted>
Sat, 14 Mar 2026 07:48:16 +0000
(09:48 +0200)
committer
Hannu 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
patch
|
blob
|
history
utils/nano/files/uci.nanorc
patch
|
blob
|
history
diff --git
a/utils/nano/Makefile
b/utils/nano/Makefile
index b85ad2e6baf8d590a2007da60a3dcef71cd045ce..4ce6a8386edc52fab52d4820424d0c7b70058cc9 100644
(file)
--- 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 8d27836fc0edcb0ba2110490a3858e4f9406aa8a..cfcb48bd841baeab0c81322bb9f407a7d652f857 100644
(file)
--- 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 ""([^"\]|\\.)*"|'([^'\]|\\.)*'"
git clone https://git.99rst.org/PROJECT