[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/eglot d77b447 04/22: Adjust active param highlighting i
From: |
João Távora |
Subject: |
[elpa] externals/eglot d77b447 04/22: Adjust active param highlighting in first line of signature (2/3) |
Date: |
Sat, 5 Jan 2019 09:31:02 -0500 (EST) |
branch: externals/eglot
commit d77b4475b6429d591fbefe5128ba9a27e97b4b28
Author: Fredrik Bergroth <address@hidden>
Commit: João Távora <address@hidden>
Adjust active param highlighting in first line of signature (2/3)
Use regex with word boundaries when scanning for active param, to
avoid matching substrings.
Copyright-paperwork-exempt: yes
* eglot.el (eglot--sig-info): Use `re-search-forward`.
---
eglot.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eglot.el b/eglot.el
index 46cfb59..ae18493 100644
--- a/eglot.el
+++ b/eglot.el
@@ -1960,10 +1960,10 @@ is not active."
(eglot--dbind ((ParameterInformation) label documentation)
(aref parameters active-param)
(goto-char params-start)
- (let ((case-fold-search nil))
+ (let ((regex (concat "\\<" (regexp-quote label) "\\>"))
+ (case-fold-search nil))
(cl-loop for nmatches from 0
- while (and (not (string-empty-p label))
- (search-forward label params-end t))
+ while (re-search-forward regex params-end t)
finally do
(when (= 1 nmatches)
(add-face-text-property
- [elpa] externals/eglot updated (23accee -> 35597d2), João Távora, 2019/01/05
- [elpa] externals/eglot cc5ef6c 02/22: Apply eglot--format-markup to signature documentation, João Távora, 2019/01/05
- [elpa] externals/eglot d77b447 04/22: Adjust active param highlighting in first line of signature (2/3),
João Távora <=
- [elpa] externals/eglot ef95839 05/22: Adjust active param highlighting in first line of signature (3/3), João Távora, 2019/01/05
- [elpa] externals/eglot 64c7605 03/22: Adjust active param highlighting in first line of signature (1/3), João Távora, 2019/01/05
- [elpa] externals/eglot e8b9cbf 16/22: Slightly simplify eglot-completion-at-point, João Távora, 2019/01/05
- [elpa] externals/eglot d5521e9 12/22: Remove workaround for company bug that has been fixed, João Távora, 2019/01/05
- [elpa] externals/eglot d167c80 15/22: Fix #190: actually make completion sorting work, João Távora, 2019/01/05
- [elpa] externals/eglot 476feb8 07/22: Add edebug specs to destructuring macros, João Távora, 2019/01/05
- [elpa] externals/eglot b8a8901 09/22: Fix #187: be more careful when making xref summaries, João Távora, 2019/01/05
- [elpa] externals/eglot 2f0e51a 13/22: Per #188: use gfm-view-mode, João Távora, 2019/01/05
- [elpa] externals/eglot b393c48 14/22: Fix previous commit where workaround had been removed, João Távora, 2019/01/05
- [elpa] externals/eglot 64da240 19/22: Fix #196: run connection hooks with proper dir-locals, João Távora, 2019/01/05