branch: externals/muse
commit a8458264ecdba464927ebef034df27d42ed10097
Author: Alexander Krotov <ilab...@gmail.com>
Commit: Alexander Krotov <ilab...@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