nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH 1/2] rcfile: allow a syntax name to be unquoted


From: Brand Huntsman
Subject: Re: [Nano-devel] [PATCH 1/2] rcfile: allow a syntax name to be unquoted
Date: Wed, 7 Feb 2018 16:23:48 -0700

On Wed,  7 Feb 2018 11:36:27 +0100
Benno Schulenberg <address@hidden> wrote:

>  src/rcfile.c | 17 +++++++++--------
>  1 file changed, 9 insertions(+), 8 deletions(-)

The code looks good. But the code doesn't restrict syntax names to only alpha 
characters (and shouldn't), so why does nanorc only highlight alpha characters?

I was using this before to highlight the quoted syntax names:
color cyan "^[[:space:]]*syntax[[:space:]]+\"[^    ]+\""

And now use this (with your patch):
color cyan "^[[:space:]]*syntax[[:space:]]+(\"[^    ]+\"|[^     ]+)"



reply via email to

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