From 109386dfe8a7a3c60bc791f50c027baef6844fe1 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 16 Aug 2024 15:44:07 +0200 Subject: [PATCH] syntax: nanorc: an unquoted argument of 'include' may not contain blanks Anything after the first "word" after 'include' will be ignored and should thus remain colorized in bright red. --- syntax/nanorc.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax/nanorc.nanorc b/syntax/nanorc.nanorc index daf104c4..1e2fd120 100644 --- a/syntax/nanorc.nanorc +++ b/syntax/nanorc.nanorc @@ -10,7 +10,7 @@ color brightred ".*" color yellow "^[[:blank:]]*(i?color|set[[:blank:]]+((error|function|key|mini|number|prompt|scroller|selected|spotlight|status|stripe|title)color))[[:blank:]]+(bold,)?(italic,)?(((bright|light)?(white|black|red|blue|green|yellow|magenta|cyan))|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte|rosy|beet|plum|sea|sky|slate|teal|sage|brown|ocher|sand|tawny|brick|crimson|grey|gray|#[[:xdigit:]]{3})?(,(((light)?(white|black|red|blue|green|yellow|magenta|cyan))|normal|pink|purple|mauve|lagoon|mint|lime|peach|orange|latte|rosy|beet|plum|sea|sky|slate|teal|sage|brown|ocher|sand|tawny|brick|crimson|grey|gray|#[[:xdigit:]]{3}))?\>" # The arguments of two special commands -color bold,purple "^[[:blank:]]*include[[:blank:]][^"]*([[:blank:]]|$)" +color bold,purple "^[[:blank:]]*include[[:blank:]]+[^[:blank:]"]+" color lime "^[[:blank:]]*extendsyntax[[:blank:]]+[[:alpha:]]+[[:blank:]]+(i?color|header|magic|comment|formatter|linter|tabgives)[[:blank:]]+.*" # The arguments of commands