nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a


From: Brand Huntsman
Subject: Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name
Date: Thu, 8 Aug 2019 13:00:46 -0600

On Thu, 8 Aug 2019 20:11:43 +0200
Benno Schulenberg <address@hidden> wrote:

> The $/ gets highlighted as if it were a variable.  :|
> The $\ gets colored as if were a variable.

Those are probably mostly only set, and dropping them would improve 
readability. The following would highlight them when set.

color cyan "(^|[[:space:]])\$[\\/]"


> Or... we could, as vim, color "find" (/.+/) and
> "substitution" (s(.).*\1.*\1) expressions after coloring variable
> names.  But that will probably cause new problems.

Substitution and match are already handled, but I agree that highlighting // 
without a prefix would cause issues.




reply via email to

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