From d0fa64432820ca388c0b9818ee54c8dab0adde64 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 17 Sep 2026 10:50:12 -0700 Subject: emacs/php: Support another case for constants This adds support for: $someVariable->someMethod(ClassName:: Previously this would insert a `->', now `::' after `ClassName'. --- emacs/.emacs.d/init.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emacs') diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 5972d00..ad238e9 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -208,7 +208,7 @@ I currently develop in PHP. (nth 3 (syntax-ppss (1+ (point)))))) (self-insert-command N) (let ((op (if (looking-back (rx (or "$" ")") (zero-or-more (any whitespace "\n" alnum "(" ")" "->"))) - (save-excursion (backward-paragraph) (point))) + (save-excursion (backward-up-list) (1+ (point)))) "->" "::"))) (dotimes (_ N) (insert op))))) -- cgit v1.3-2-g0d8e