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>
This commit is contained in:
parent
f410661f7b
commit
8f9564387d
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
|||
|
||||
PKG_NAME:=nano
|
||||
PKG_VERSION:=7.2
|
||||
PKG_RELEASE:=3
|
||||
PKG_RELEASE:=4
|
||||
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
|
||||
PKG_SOURCE_URL:=@GNU/nano
|
||||
|
|
|
@ -43,7 +43,7 @@ color ,green "[[:space:]]+$"
|
|||
|
||||
# Text outside template directives
|
||||
color slate start="[}%#]\}" end="\{[{%#]"
|
||||
color slate start="^#!" end="\{[{%#]"
|
||||
color slate start="^#!.*(\<utpl\>|[[:space:]]-[[:alnum:]]*T[[:alnum:]]*\>)" end="\{[{%#]"
|
||||
color slate "^([^{%#}]|\{[^{%#]|[%#}][^}])+\{[{%#]"
|
||||
|
||||
# Template tags
|
||||
|
|
Loading…
Reference in New Issue