|
From: | Michael Francis |
Subject: | Re: [Nano-devel] Nano Patch |
Date: | Mon, 11 Dec 2017 02:58:24 -0500 |
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
0002-syntax-php-color-keywords-differently-than-strings-a.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |