(let* ((completion-ignore-case nil)
(before (char-before (- (point) (length prefix)))))
(if (and company-elisp-detect-function-context
- (not (eq before ?')))
+ (not (memq before '(?' ?`))))
(if (and (eq before ?\()
(not
(save-excursion
(company-elisp--candidates-predicate "b"))
'company-elisp--predicate))))
+(ert-deftest company-elisp-candidates-predicate-in-docstring ()
+ (company-elisp-with-buffer
+ "(def foo () \"Doo be doo `ide|"
+ (should (eq 'company-elisp--predicate
+ (let ((company-elisp-detect-function-context t))
+ (company-elisp--candidates-predicate "ide"))))))
+
;; This one's also an integration test.
(ert-deftest company-elisp-candidates-recognizes-binding-form ()
(let ((company-elisp-detect-function-context t)