From 809d2a41c417beae78a853c1216c7b69a51ece35 Mon Sep 17 00:00:00 2001 From: USAMI Kenta Date: Sat, 25 Jul 2020 17:41:11 +0900 Subject: [PATCH] Fix regexp where characters following logical negation are not font-locked --- php-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-mode.el b/php-mode.el index 71eca1a7..1f2ecca4 100644 --- a/php-mode.el +++ b/php-mode.el @@ -1518,7 +1518,7 @@ a completion list." ("\\<\\(const\\)\\s-+\\(\\_<.+?\\_>\\)" (1 'php-keyword) (2 'php-constant-assign)) ;; Logical operator (!) - ("\\(![^=]\\)" 1 'php-logical-op) + ("\\(!\\)[^=]" 1 'php-logical-op) ;; Highlight special variables ("\\(\\$\\)\\(this\\)\\>" (1 'php-$this-sigil) (2 'php-$this))