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: Sun, 4 Aug 2019 06:24:05 -0600

On Sun,  4 Aug 2019 12:53:25 +0200
Benno Schulenberg <address@hidden> wrote:

> This fixes https://savannah.gnu.org/bugs/?56713.
>
> +color cyan "[$@%][0-9A-Za-z_]+"

The following is more correct, but doesn't include support for ::, ' or unicode 
identifiers.

"[$@%&*]\$?(\^[][A-Z^_?\]|[0-9]+|[A-Za-z_][0-9A-Za-z_]*|[][`~!@#$%&*-=+;:'",.\\|/?()<>])|\{(\^_?[0-9A-Za-z]+|[0-9]+|[A-Za-z_][0-9A-Za-z_]*)\})"

https://perldoc.perl.org/perlvar.html




reply via email to

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