syntax: nanorc: avoid colorizing #rgb codes as if they were comments

Demand that trailing comments (which are not really supported anyway)
have a space or tab after their hash mark.
master
Benno Schulenberg 2021-11-23 11:56:17 +01:00
parent 9a778f9a00
commit 90946c5e9e
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ color magenta "^[[:blank:]]*i?color\>|[[:blank:]](start=|end=)"
color bold,pink "[[:cntrl:]]"
# Comments
color brightblue "(^|[[:blank:]]+)#.*"
color brightblue "^[[:blank:]]*#.*|[[:blank:]]#[[:blank:]].*"
color cyan "^[[:blank:]]*##.*"
# Trailing whitespace