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

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

[nongnu] elpa/idle-highlight-mode df7f6a84f5 07/59: Highlight only when


From: ELPA Syncer
Subject: [nongnu] elpa/idle-highlight-mode df7f6a84f5 07/59: Highlight only when point is on a symbol character.
Date: Thu, 7 Jul 2022 12:00:28 -0400 (EDT)

branch: elpa/idle-highlight-mode
commit df7f6a84f55c91d5a377ed1bdf6c2b37dd5cc0ec
Author: Cornelius Mika <cornelius.mika@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Highlight only when point is on a symbol character.
    
    symbol-at-point returns the neighboring symbol when point is on
    whitespace or punctuation.
---
 idle-highlight-mode.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/idle-highlight-mode.el b/idle-highlight-mode.el
index f4e19baeb8..9450ef5763 100755
--- a/idle-highlight-mode.el
+++ b/idle-highlight-mode.el
@@ -76,6 +76,7 @@
       (if
         (and
           target-symbol (not (in-string-p))
+          (looking-at-p "\\s_\\|\\sw") ;; Symbol characters
           ;; TODO: no need to highlight keywords like if
           (not (equal target "end")))
         (progn



reply via email to

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