[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] Nano Patch
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] Nano Patch |
Date: |
Sun, 10 Dec 2017 13:39:06 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 |
Op 09-12-17 om 16:48 schreef Michael Francis:
I have a patch that improves PHP syntax highlighting for function and variable
names.
Thanks for that.
Hmm... I don't know how the regex stuff works internally, but I'm
guessing that explicit ranges are faster than case-insensitive ones.
So, would you be okay with the following regexes?:
# Function names.
color white "\<[A_Za-z_][A-Za-z_0-9]*\("
# Variable names.
color cyan "\$[A-Za-z_][A-Za-z_0-9]*"
And as you appear to know PHP, don't you find it strange that nano
colors PHP keywords the same as strings? If so, care to propose a
patch for that?
Benno