commit f8e03207220cb062806efa72f1e62ed728c152b8
parent e5a8c35104596edcaf363bfee00852dff2a54182
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Mon, 1 Apr 2019 17:24:19 +0200
syntax: nanorc: require whitespace both before and after a quoted string
This ensures that the keyname M-" is not miscolored.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/syntax/nanorc.nanorc b/syntax/nanorc.nanorc
@@ -18,7 +18,7 @@ icolor brightgreen "^[[:space:]]*(syntax|linter)[[:space:]]+[^[:blank:]]+"
icolor green "^[[:space:]]*((un)?(bind|set)|include|syntax|header|magic|comment|linter|extendsyntax)\>"
# Strings
-color brightmagenta "".+"([[:space:]]|$)"
+color brightmagenta "[[:space:]]".+"([[:space:]]|$)"
# Colors
icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan|normal)?(,(white|black|red|blue|green|yellow|magenta|cyan|normal))?\>"