[Top][All Lists]

[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: Mon, 18 Dec 2017 17:22:01 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0

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
the solution?

^ should match the beginning of a line, but it works IMO by accident
here since it match the beginning of a search as well. 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.

> (There is an additional problem: if you type a space after "#warning",
> the coloring of "blah blah" is dropped.  But if you then remove the
> space again, "blah blah" is not recolored.  Only when typing ^S or ^L
> does the color return.  So a change in the multiline regex matching is
> not always detected.  But that is a different kind of bug.)

I hope you will fix it. :>

> Benno
> _______________________________________________
> Nano-devel mailing list
> address@hidden

Best regards,

reply via email to

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