syntax: nanorc: require whitespace both before and after a quoted string

This ensures that the keyname M-" is not miscolored.
master
Benno Schulenberg 2019-04-01 17:24:19 +02:00
parent e5a8c35104
commit f8e0320722
1 changed files with 1 additions and 1 deletions

View File

@ -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))?\>"