From 3b098c884f28abbbbbe504ceab4912f12f19fd6b Mon Sep 17 00:00:00 2001 From: Jan-Jaap Korpershoek Date: Fri, 1 Jun 2018 11:21:22 +0200 Subject: [PATCH] Change syntax highlighting regex for numbers so that numbers in identifiers are no longer highlighted. --- rc/extra/php.kak | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rc/extra/php.kak b/rc/extra/php.kak index 97c9d2f0..659ac268 100644 --- a/rc/extra/php.kak +++ b/rc/extra/php.kak @@ -24,7 +24,7 @@ add-highlighter shared/php/comment fill comment add-highlighter shared/php/code regex &?\$\w* 0:variable add-highlighter shared/php/code regex \b(false|null|parent|self|this|true)\b 0:value -add-highlighter shared/php/code regex "-?[0-9]*\.?[0-9]+" 0:value +add-highlighter shared/php/code regex "(\b|-)[0-9]*\.?[0-9]+\b" 0:value add-highlighter shared/php/code regex \b((string|int|bool)|[A-Z][a-z].*?)\b 0:type add-highlighter shared/php/code regex \B/[^\n/]+/[gimy]* 0:meta add-highlighter shared/php/code regex '<\?(php)?|\?>' 0:meta