[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm 39db43c4fb 1/2: Let dabbrev complete function names f
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm 39db43c4fb 1/2: Let dabbrev complete function names from PHP function calls |
Date: |
Fri, 26 Aug 2022 07:58:43 -0400 (EDT) |
branch: elpa/helm
commit 39db43c4fb2265de0d6e41cddbbedcd89287d5cd
Author: Christian Weiske <cweiske@cweiske.de>
Commit: Christian Weiske <cweiske@cweiske.de>
Let dabbrev complete function names from PHP function calls
Function calls in PHP are chained with "->":
$this->someFunc()->someOtherFunc()->varname
helm-dabbrev does not complete such function names.
When typing "someF" and invoking helm-dabbrev, nothing gets completed.
The solution is to add ">" to the regex definining the
start of an expansion.
I hope this does not break other languages.
---
helm-dabbrev.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/helm-dabbrev.el b/helm-dabbrev.el
index cb8524281f..71bf1062e2 100644
--- a/helm-dabbrev.el
+++ b/helm-dabbrev.el
@@ -1,6 +1,6 @@
;;; helm-dabbrev.el --- Helm implementation of dabbrev. -*- lexical-binding: t
-*-
-;; Copyright (C) 2012 ~ 2021 Thierry Volpiatto
+;; Copyright (C) 2012 ~ 2021 Thierry Volpiatto
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -105,7 +105,7 @@ initial search for all candidates in buffer(s)."
'helm-dabbrev-separator-regexp "2.8.3")
;; Check for beginning of line should happen last (^\n\\|^).
(defvar helm-dabbrev-separator-regexp
- "\\s-\\|\t\\|[(\\[\\{\"'`=<$;,@.#+]\\|\\s\\\\|^\n\\|^"
+ "\\s-\\|\t\\|[(\\[\\{\"'`=<>$;,@.#+]\\|\\s\\\\|^\n\\|^"
"Regexp matching the start of a dabbrev candidate.")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/helm 39db43c4fb 1/2: Let dabbrev complete function names from PHP function calls,
ELPA Syncer <=