Re: [Mutt] #2363: matching EOL in "color body ... '_$'" fails
#2363: matching EOL in "color body ... '_$'" fails because mistreatment of EOL
(\n)
Changes (by brendan):
* reporter: rado@xxxxxxxxxxxxxxxxxxx => rado
Old description:
> {{{
> tpope (from #mutt) found out that "color body ... '_$'" won't
> match a line ending in "_", because it considers \n as part of
> the line and "$" matching _after_ the \n.
>
> (might affect other "color" elements, or even other places where regexp
> for multilines are matched)
> >How-To-Repeat:
> Compare the following two lines when used in a muttrc:
> color body yellow blue "[a-z]$"
> color body green red "[a-z]\012$"
> >Fix:
> }}}
New description:
tpope (from #mutt) found out that "color body ... '_$'" won't
match a line ending in "_", because it considers \n as part of
the line and "$" matching _after_ the \n.
(might affect other "color" elements, or even other places where regexp
for multilines are matched)
>How-To-Repeat:
Compare the following two lines when used in a muttrc:
{{{
color body yellow blue "[a-z]$"
color body green red "[a-z]\012$"
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/2363#comment:2>