syntax: nanorc: colorize a trailing comment when it begins with non-hex
That is: colorize text after a blank-plus-hash as a comment when there is at least one non-hexadecimal character among the first three. This relaxes the demand that a trailing comment should have a blank after the hash too, as implemented by commit 90946c5e two weeks ago.
This commit is contained in:
parent
5cec57719b
commit
44836e77be
@ -33,7 +33,7 @@ color magenta "^[[:blank:]]*i?color\>|[[:blank:]](start=|end=)"
|
||||
color bold,pink "[[:cntrl:]]"
|
||||
|
||||
# Comments
|
||||
color brightblue "^[[:blank:]]*#.*|[[:blank:]]#[[:blank:]].*"
|
||||
color brightblue "^[[:blank:]]*#.*|[[:blank:]]#.{0,2}[^[:xdigit:]].*"
|
||||
color cyan "^[[:blank:]]*##.*"
|
||||
|
||||
# Trailing whitespace
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user