commit aabfefde7e5cfb70831c8aa89683fb6430f6942b
parent bccb0ea0bb964290d463e52792d23b1d56fa28cb
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 26 Jul 2020 19:54:02 +0200
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 ($).
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git 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 ";|:|\{|\}"