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: Sat, 10 Aug 2019 23:11:18 -0600

On Sat, 10 Aug 2019 13:44:42 +0200
Benno Schulenberg <address@hidden> wrote:

> > You can also remove the \$? now that punctuation is in a separate
> > regex.  
> 
> Except for the &$... cases.  No?  Or don't they make sense?
> 
> But it will probably be cheaper to replace the "\$?" in the first two
> regexes with a "|&$" at the end of the third regex.

I don't understand how that would handle &$... cases.

If it was possible, I'd rather nothing to the left of the right-most sigil was 
highlighted (only $var was highlighted for @$var). It makes the additional 
actions to the variable more visible, look at how *$var and \$var are currently 
highlighted. So I have no problem with only supporting &var, but keeping the 
\$? would be fine too.

And ([$@%]|&\$?)... might be faster than [$@%&]\$?...




reply via email to

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