mirror of git://git.sv.gnu.org/nano.git
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.
This commit is contained in:
parent
9a778f9a00
commit
90946c5e9e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue