From aabfefde7e5cfb70831c8aa89683fb6430f6942b Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 26 Jul 2020 19:54:02 +0200 Subject: [PATCH] syntax: css: color multiline comments correctly A forward slash does not need to be escaped, and the backslash itself should not be escaped: it serves to escape the star, to make it literal. Also, remove a stray end-of-line anchor ($). --- syntax/css.nanorc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/css.nanorc b/syntax/css.nanorc index 2900252e..fa0d01bd 100644 --- a/syntax/css.nanorc +++ b/syntax/css.nanorc @@ -6,6 +6,6 @@ comment "/*|*/" color brightred "." color brightyellow start="\{" end="\}" color brightwhite start=":" end="([;^\{]|$)" -color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before|$" -color brightblue start="\/\*" end="\\*/" +color brightblue ":active|:focus|:hover|:link|:visited|:link|:after|:before" +color brightblue start="/\*" end="\*/" color green ";|:|\{|\}"