mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-05 00:54:26 +03:00
syntax: nanorc: require whitespace both before and after a quoted string
This ensures that the keyname M-" is not miscolored.
This commit is contained in:
parent
e5a8c35104
commit
f8e0320722
@ -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))?\>"
|
||||
|
Loading…
Reference in New Issue
Block a user