commit 2db58f3cfcda7b1317ef06c2fa39bd86eeaa88aa
parent f2c5cf11c2fad2f7eb623de207b89bcc2c5c4121
Author: Lou Woell <lou.woell@posteo.de>
Date:   Mon, 15 Sep 2025 00:52:38 +0200

[haredoc.el] store link-regex in constant

Diffstat:
Mharedoc.el | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/haredoc.el b/haredoc.el @@ -42,6 +42,7 @@ (defconst haredoc-symbol-regex "\\**\\(\\(\\(\\sw\\|\\s_\\)+::\\)*\\(\\sw\\|\\s_\\)+\\)") (defconst haredoc-decl-regex "^\\(fn\\|type\\|def\\|const\\|let\\) ") +(defconst haredoc-link-regex "\\[\\[\\(.*?\\)\\]\\]" ) (defun haredoc/root-dir () (interactive) @@ -166,7 +167,7 @@ the results in a new buffer." (save-excursion (goto-char (point-min)) - (while (re-search-forward "\\[\\[\\(.*?\\)\\]\\]" nil t) + (while (re-search-forward haredoc-link-regex nil t) (haredoc/make-button 1 current-ns)) (goto (point-max))