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: Liu Hao
Subject: Re: [Nano-devel] [PATCH] syntax: c: change the highlighting of preprocessor directives
Date: Wed, 20 Dec 2017 10:39:26 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

On 2017/12/20 2:46, Benno Schulenberg wrote:
> 
> 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!
> 

My pleasure. :>

>> 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).
-----

> 
> Benno
> 
> 
> _______________________________________________
> Nano-devel mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/nano-devel


-- 
Best regards,
LH_Mouse




reply via email to

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