mirror of
git://git.sv.gnu.org/nano.git
synced 2025-01-27 03:32:05 +03:00
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…
Reference in New Issue
Block a user