mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
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:
@@ -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
|
||||
|
||||
@@ -9,6 +9,9 @@ color green "\<(package|config|option|list)\>"
|
||||
# Comments.
|
||||
color cyan "(^|[[:blank:]])#.*"
|
||||
|
||||
# Unterminated strings.
|
||||
color lightmagenta ""([^"\]|\\.)*[^"\]|'([^'\]|\\.)*[^'\]"
|
||||
|
||||
# Strings.
|
||||
color yellow ""([^"\]|\\.)*"|'([^'\]|\\.)*'"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user