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

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

[elpa] externals/hyperbole 31d77e4dce 10/12: Merge pull request #649 fro


From: ELPA Syncer
Subject: [elpa] externals/hyperbole 31d77e4dce 10/12: Merge pull request #649 from rswgnu/rsw
Date: Sun, 19 Jan 2025 06:58:16 -0500 (EST)

branch: externals/hyperbole
commit 31d77e4dceb3f70d4f11ee6a4c0dd6cd718d6322
Merge: 03d01f070d 6ad399d799
Author: Robert Weiner <rsw@gnu.org>
Commit: GitHub <noreply@github.com>

    Merge pull request #649 from rswgnu/rsw
    
    hywiki.el - Fix WikiWord:L2:C3 not highlighting properly
---
 ChangeLog | 4 ++++
 hywiki.el | 9 ++++-----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 3eabe69052..1e70044648 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2025-01-18  Bob Weiner  <rsw@gnu.org>
 
+* hywiki.el (hywiki-get-referent-hasht): Fix when building
+    'hywiki--any-wikiword-regexp-list', allow for either or both #section
+    and :Lnum:Cnum.  This fixes not highlighting "WikiWord:L2".
+
 * hyrolo.el (hyrolo-refresh-file-list): Add to refresh internal expanded list
     of HyRolo search files.
   test/hyrolo-tests.el (hyrolo-tests--get-file-list): Fix this test by using
diff --git a/hywiki.el b/hywiki.el
index 38a0ee80d4..41ed33b886 100644
--- a/hywiki.el
+++ b/hywiki.el
@@ -3,7 +3,7 @@
 ;; Author:       Bob Weiner
 ;;
 ;; Orig-Date:    21-Apr-24 at 22:41:13
-;; Last-Mod:     18-Jan-25 at 22:17:01 by Bob Weiner
+;; Last-Mod:     18-Jan-25 at 23:45:34 by Bob Weiner
 ;;
 ;; SPDX-License-Identifier: GPL-3.0-or-later
 ;;
@@ -458,7 +458,7 @@ non-# and non-whitespace characters.")
 Group 4 is the optional 0-based column number.")
 
 (defconst hywiki-word-with-optional-suffix-regexp
-  (concat hywiki-word-regexp hywiki-word-section-regexp "?"
+  (concat hywiki-word-regexp hywiki-word-section-regexp "??"
          hywiki-word-line-and-column-numbers-regexp "?")
   "Regexp for a HyWiki word with an optional #section, :Lline-num, :Ccol-num.
 Section may not contain whitespace or square brackets.  Use '-' to
@@ -485,7 +485,7 @@ Group 6 is any optional 0-based column number to jump to 
for any
 file-based referents.")
 
 (defconst hywiki-word-with-optional-suffix-exact-regexp
-  (concat "\\`" hywiki-word-regexp "\\(#[^][\n\r\f]+\\)?"
+  (concat "\\`" hywiki-word-regexp "\\(#[^][\n\r\f]+\\)??"
          hywiki-word-line-and-column-numbers-regexp "?\\'")
   "Exact match regexp for a HyWiki word with an optional #section.
 The section may contain spaces or tabs but not square brackets;
@@ -2246,8 +2246,7 @@ regexps of wikiwords, if the hash table is out-of-date."
                            (delq nil (nconc wikiword-sublist
                                             (mapcar 
#'hywiki-get-plural-wikiword wikiword-sublist))))
                      (concat (regexp-opt wikiword-sublist 'words)
-                             "\\("
-                             hywiki-word-section-regexp "?\\)"
+                             "\\(" hywiki-word-section-regexp "??" 
hywiki-word-line-and-column-numbers-regexp "?" "\\)"
                              hywiki--buttonize-character-regexp))
                    (hypb:split-seq-into-sublists
                     (hash-map #'cdr hywiki--referent-hasht) 25)))



reply via email to

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