From 8f9564387d136c2a09c763b4c4ac7e4aa16baeb5 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Fri, 5 Apr 2024 01:33:50 +0200 Subject: 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 --- utils/nano/files/ucode.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/nano/files') diff --git a/utils/nano/files/ucode.nanorc b/utils/nano/files/ucode.nanorc index 96c7848e2..647f21d85 100644 --- a/utils/nano/files/ucode.nanorc +++ b/utils/nano/files/ucode.nanorc @@ -43,7 +43,7 @@ color ,green "[[:space:]]+$" # Text outside template directives color slate start="[}%#]\}" end="\{[{%#]" -color slate start="^#!" end="\{[{%#]" +color slate start="^#!.*(\|[[:space:]]-[[:alnum:]]*T[[:alnum:]]*\>)" end="\{[{%#]" color slate "^([^{%#}]|\{[^{%#]|[%#}][^}])+\{[{%#]" # Template tags -- cgit v1.2.3