From 8891afcbb2e28a09a09a4e52e54a717bc26fad6f Mon Sep 17 00:00:00 2001 From: Demis Balbach Date: Fri, 20 Dec 2019 10:01:35 +0100 Subject: [PATCH] Add => to assignment operators --- php-mode.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/php-mode.el b/php-mode.el index 93e95410..4c22632a 100644 --- a/php-mode.el +++ b/php-mode.el @@ -688,6 +688,7 @@ but only if the setting is enabled" (case-label . +) (class-open . 0) (comment-intro . 0) + (inexpr-class . 0) (inlambda . 0) (inline-open . 0) (namespace-open . 0) @@ -1550,7 +1551,7 @@ a completion list." ("\\(\\$\\)\\(this\\)\\>" (1 'php-$this-sigil) (2 'php-$this)) ("\\(\\$+\\)\\(\\sw+\\)" (1 'php-variable-sigil) (2 'php-variable-name)) ("\\(->\\)\\([a-zA-Z0-9_]+\\)" (1 'php-object-op) (2 'php-property-name)) - + ;; Highlight function/method names ("\\]+?\\([\-+./%]?=\\)[^=]+?\\)" 2 'php-assignment-op) + ("\\([^=]+?\\([\-+./%]?=\\)[^==, ...) ("\\([!=]=\\{1,2\\}[>]?\\|[<>]=?\\)" 1 'php-comparison-op) @@ -1670,8 +1671,7 @@ a completion list." ;; Logical operators (and, or, &&, ...) ;; Not operator (!) is defined in "before cc-mode" section above. - ("\\(&&\\|\|\|\\)" 1 'php-logical-op) - )) + ("\\(&&\\|||\\)" 1 'php-logical-op))) "Detailed highlighting for PHP Mode.") (defvar php-font-lock-keywords php-font-lock-keywords-3