nano: fix syntax highlighting for raw ucode scripts
Text between interpreter line and start of first directive should only
highlighted as uninterpreted when running in template mode, so adjust
the match rule accordingly.
Fixes: #23761
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
(cherry picked from commit 8f9564387d
)
This commit is contained in:
parent
51005623ca
commit
8c02297d07
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=nano
|
PKG_NAME:=nano
|
||||||
PKG_VERSION:=7.2
|
PKG_VERSION:=7.2
|
||||||
PKG_RELEASE:=3
|
PKG_RELEASE:=4
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||||
PKG_SOURCE_URL:=@GNU/nano
|
PKG_SOURCE_URL:=@GNU/nano
|
||||||
|
|
|
@ -43,7 +43,7 @@ color ,green "[[:space:]]+$"
|
||||||
|
|
||||||
# Text outside template directives
|
# Text outside template directives
|
||||||
color slate start="[}%#]\}" end="\{[{%#]"
|
color slate start="[}%#]\}" end="\{[{%#]"
|
||||||
color slate start="^#!" end="\{[{%#]"
|
color slate start="^#!.*(\<utpl\>|[[:space:]]-[[:alnum:]]*T[[:alnum:]]*\>)" end="\{[{%#]"
|
||||||
color slate "^([^{%#}]|\{[^{%#]|[%#}][^}])+\{[{%#]"
|
color slate "^([^{%#}]|\{[^{%#]|[%#}][^}])+\{[{%#]"
|
||||||
|
|
||||||
# Template tags
|
# Template tags
|
||||||
|
|
Loading…
Reference in New Issue