diff options
| author | 2026-09-17 10:50:12 -0700 | |
|---|---|---|
| committer | 2026-09-17 10:50:12 -0700 | |
| commit | d0fa64432820ca388c0b9818ee54c8dab0adde64 (patch) | |
| tree | 097bf1e8db998e93deb5be5587898ae75c0242af /emacs | |
| parent | 0b46967c1d3795b9a008caf9c6f1b7b63ae6f91c (diff) | |
| download | new-dotfiles-d0fa64432820ca388c0b9818ee54c8dab0adde64.tar.gz new-dotfiles-d0fa64432820ca388c0b9818ee54c8dab0adde64.zip | |
emacs/php: Support another case for constants
This adds support for:
$someVariable->someMethod(ClassName::
Previously this would insert a `->', now `::' after `ClassName'.
Diffstat (limited to 'emacs')
| -rw-r--r-- | emacs/.emacs.d/init.org | 2 |
1 files changed, 1 insertions, 1 deletions
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))))) |
