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

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

[elpa] externals/muse a8458264ec 08/14: Fix comment regexp


From: Stefan Monnier
Subject: [elpa] externals/muse a8458264ec 08/14: Fix comment regexp
Date: Fri, 9 Feb 2024 18:40:43 -0500 (EST)

branch: externals/muse
commit a8458264ecdba464927ebef034df27d42ed10097
Author: Alexander Krotov <ilabdsf@gmail.com>
Commit: Alexander Krotov <ilabdsf@gmail.com>

    Fix comment regexp
    
    ' was not escaped properly so it matched literal "'" instead of buffer end.
    
    As a result, comment like
    ;'foobar
    resulted in publishing "foobar" as if it was not commented.
---
 lisp/muse-publish.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/muse-publish.el b/lisp/muse-publish.el
index ec6e176e3f..6a4700d7ba 100644
--- a/lisp/muse-publish.el
+++ b/lisp/muse-publish.el
@@ -108,7 +108,7 @@ If non-nil, publish comments using the markup of the 
current style."
     (1200 "\\`#\\([a-zA-Z-]+\\)\\s-+\\(.+\\)\n+" 0 directive)
 
     ;; commented lines
-    (1250 ,(concat "^;\\(?:[" muse-regexp-blank "]+\\(.+\\)\\|$\\|'\\)")
+    (1250 ,(concat "^;\\(?:[" muse-regexp-blank "]+\\(.+\\)\\|$\\|\\'\\)")
           0 comment)
 
     ;; markup tags



reply via email to

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