nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH] syntax: c: change the highlighting of preproces


From: Benno Schulenberg
Subject: Re: [Nano-devel] [PATCH] syntax: c: change the highlighting of preprocessor directives
Date: Tue, 19 Dec 2017 19:46:25 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0


Op 18-12-17 om 10:22 schreef Liu Hao:
On 2017/12/17 19:32, Benno Schulenberg wrote:
The "end=" part wants a character that is not a backslash and that is
not part of what the "start=" matched.  The "start=" and "end=" parts
cannot overlap each other.  I do not know how to solve this.

Is either
     end="(^|[^\\])$"

This doesn't improve things for me.

or
     end="(\`|[^\\])$"
the solution?

Wow.  This works.  Thanks!

The second one is
a less familiar GNU extension that matches the beginning of a search
regardless of line breaks, exactly what is needed here.

Where is this \` extension documented?

Benno




reply via email to

[Prev in Thread] Current Thread [Next in Thread]