From 15b647fd05fe7fe7924d777553f1fffeb51fee7f Mon Sep 17 00:00:00 2001 From: Michael Francis Date: Sat, 9 Dec 2017 10:29:56 -0500 Subject: [PATCH] syntax: php: color case-insensitive function and variable names with digits PHP supports uppercase function and variable names. PHP also supports digits in those names. Reference: http://php.net/manual/en/language.variables.basics.php Signed-off-by: Michael Francis --- syntax/php.nanorc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/php.nanorc b/syntax/php.nanorc index 2b5f0776..3478b2a7 100644 --- a/syntax/php.nanorc +++ b/syntax/php.nanorc @@ -8,9 +8,9 @@ comment "//" color brightgreen "(<\?(php)?|\?>)" # Function names. -color white "\<[a-z_]*\(" +icolor white "\<[a-z_][a-z0-9_]*\(" # Variable names. -color cyan "\$[a-z_]+" +icolor cyan "\$[a-z_][a-z0-9_]*" # Types. color green "\<(array|bool|callable|const|float|global|int|object|string|var)\>" -- 2.14.1