[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: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] [PATCH 1/2] rcfile: allow a syntax name to be unquoted |
Date: |
Fri, 9 Feb 2018 20:01:24 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Op 08-02-18 om 12:50 schreef Brand Huntsman:
On Thu, 8 Feb 2018 12:23:18 +0100 Benno Schulenberg <address@hidden>
wrote:
Op 08-02-18 om 00:23 schreef Brand Huntsman:
the code doesn't restrict syntax names to only alpha characters (and
shouldn't), so why does nanorc only highlight alpha characters?
Ah. Hadn't thought of that. Would alnum plus the slash be enough?
It should support anything nano supports, and nano supports everything except
for whitespace.
Okay. So "[^[:blank:]]+".
As for the escaped quotes, nano should be fixed to require them.
No. That will not be changed.
Try a regex that has a space after a quote.
color red "[^" ]"
True. I guess that in most cases one can work around that by
using [:blank:] instead of a space. That will include also a
tab, but that will be correct in most cases. Can you give an
example where this workaround is not possible?
Benno