commit 945b113b17a8c5b7a6f7363684cac56560a2b9d1
parent 5a98696f7099e582d2bb38c94ce21d5ef2531a95
Author: Lou Woell <lou.woell@posteo.de>
Date: Sat, 20 Sep 2025 02:26:23 +0200
[haredoc.el] ignore & in front of symbol
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/haredoc.el b/haredoc.el
@@ -40,7 +40,7 @@
(defconst haredoc-helperbindir (f-dirname (macroexp-file-name)))
(defconst haredoc-helperbin (concat haredoc-helperbindir "/harehelper"))
-(defconst haredoc-symbol-regex "\\**\\(\\(\\(\\sw\\|\\s_\\)+::\\)*\\(\\sw\\|\\s_\\)+\\)")
+(defconst haredoc-symbol-regex "[\\*&]*\\(\\(\\(\\sw\\|\\s_\\)+::\\)*\\(\\sw\\|\\s_\\)+\\)")
(defconst haredoc-decl-regex "^\\(fn\\|type\\|def\\|const\\|let\\) ")
(defconst haredoc-link-regex "\\[\\[\\(.*?\\)\\]\\]" )