[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: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name |
Date: |
Tue, 13 Aug 2019 19:21:57 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
Op 11-08-19 om 21:18 schreef Brand Huntsman:
> That ranged punctuation set in third regex obscures what characters it
> actually highlights, does it contain the $ character?
Yes. I look at 'man ascii' to figure out the ranges.
> Because $$var only highlights the $var for me.
It worked fine for me.
>> +color cyan "[$@%&]([A-Za-z_][0-9A-Za-z_]*|\^[][A-Z^_?\]|[0-9]+)\>"
>> +color cyan "[$@%&]\{(\^?[A-Za-z_][0-9A-Za-z_]*|[0-9]+)\}"
>
> The second regex is missing the \^[][^?\] characters from \^[][A-Z^_?\].
>
> "[$@%&]\{(\^?[A-Za-z_][0-9A-Za-z_]*|\^[][^?\]|[0-9]+)\}"
Thanks. I've just changed the order to ASCII order (except for the
square brackets, of course).
>> +color cyan "\$([][!-.:-@`|~]|\{[][!-/:-@\`|~]\})"
>
> The bracketed punctuation should support all sigils.
Okay. See upcoming V6.
> And what about moving the $@%& punctuation to a separate regex? Non-sigil
> punctuation could then use all four sigils.
Okay.
Benno
signature.asc
Description: OpenPGP digital signature
- Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name, (continued)
- Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name, Benno Schulenberg, 2019/08/07
- Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name, Brand Huntsman, 2019/08/08
- Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name, Benno Schulenberg, 2019/08/08
- Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name, Brand Huntsman, 2019/08/08
- Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name, Benno Schulenberg, 2019/08/09
- Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name, Brand Huntsman, 2019/08/09
- Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name, Benno Schulenberg, 2019/08/10
- Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name, Brand Huntsman, 2019/08/11
- Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name, Benno Schulenberg, 2019/08/11
- Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name, Brand Huntsman, 2019/08/11
- Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name,
Benno Schulenberg <=
- Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name, Brand Huntsman, 2019/08/13
- Re: [Nano-devel] [PATCH] syntax: perl: don't color the character after a variable name, Benno Schulenberg, 2019/08/14