emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 1fe2634 02/12: Fix #665 quick and dirty


From: Dmitry Gutov
Subject: [elpa] master 1fe2634 02/12: Fix #665 quick and dirty
Date: Sat, 15 Jul 2017 13:36:43 -0400 (EDT)

branch: master
commit 1fe263493fc3cb3551c55bb3441fd9d7eb0c0a96
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Fix #665 quick and dirty
---
 NEWS.md          | 1 +
 company-files.el | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/NEWS.md b/NEWS.md
index 08b0b33..7e9c4d7 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -2,6 +2,7 @@
 
 ## Next
 
+* `company-files` allows completion after `=`.
 * `company-template` has a new shortcut (`C-d`) for deleting an unmodified
   template field while cursor is on it.
 
diff --git a/company-files.el b/company-files.el
index 4410281..c6102a1 100644
--- a/company-files.el
+++ b/company-files.el
@@ -70,7 +70,7 @@ The values should use the same format as 
`completion-ignored-extensions'."
          (begin (concat "\\(?:\\.\\{1,2\\}/\\|~/\\|" root "\\)")))
     (list (concat "\"\\(" begin "[^\"\n]*\\)")
           (concat "\'\\(" begin "[^\'\n]*\\)")
-          (concat "\\(?:[ \t]\\|^\\)\\(" begin "[^ \t\n]*\\)"))))
+          (concat "\\(?:[ \t=]\\|^\\)\\(" begin "[^ \t\n]*\\)"))))
 
 (defun company-files--grab-existing-name ()
   ;; Grab the file name.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]