From 7e1cb42c50eac7bdf5c941f03aaf6fb7f10f8623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20E=C5=A1ler?= Date: Mon, 17 Dec 2018 12:31:25 +0100 Subject: [PATCH] fix PHP classes with underscore character --- php.nanorc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php.nanorc b/php.nanorc index 7e651d1..ec6832e 100644 --- a/php.nanorc +++ b/php.nanorc @@ -6,7 +6,7 @@ color brightblue "([a-zA-Z0-9_-]*)\(" # Constructs color brightblue "(class|extends|goto) ([a-zA-Z0-9_]*)" color green "[^a-z0-9_-]{1}(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|endif|foreach|endforeach|@|while|public|private|protected|return|true|false|null|TRUE|FALSE|NULL|const|static|extends|as|array|require|include|require_once|include_once|define|do|continue|declare|goto|print|in|namespace|use)[^a-z0-9_-]{1}" -color brightblue "[a-zA-Z0-9]+:" +color brightblue "[a-zA-Z0-9_]+:" # Variables color white "\$[a-zA-Z_0-9$]*|[=!<>]" color white "\->[a-zA-Z_0-9$]*|[=!<>]"