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: Wed, 20 Dec 2017 20:00:47 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0


Op 20-12-17 om 03:39 schreef Liu Hao:
On 2017/12/20 2:46, Benno Schulenberg wrote:
Op 18-12-17 om 10:22 schreef Liu Hao:
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?

<https://www.gnu.org/software/gnulib/manual/html_node/The-Backslash-Character.html>

-----
‘\`’ represents the match-beginning-of-buffer operator and ‘\'’
represents the match-end-of-buffer operator (see Buffer Operators).
-----

Ah.  Thanks.  It is a match-beginning-of-buffer "anchor".  That makes
sense. Your "beginning of a search" wording had me puzzled.  But it is:
the beginning of the buffer in which to search.

But... how portable is this?  The BSDs won't understand this, I guess.
So how do we tell the BSDs that they should use the gnulib regex module?
Because we want to use GNU-specific regular expressions.

Benno




reply via email to

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