branch: elpa/adoc-mode
commit 46c99fbd511e4adaf37dfc0678b2900bd1c4061f
Author: Florian Kaufmann <sensor...@gmail.com>
Commit: Florian Kaufmann <sensor...@gmail.com>

    bugfix in font lock regexp for comments
---
 adoc-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/adoc-mode.el b/adoc-mode.el
index cdd49fe447..869e5e0ccc 100644
--- a/adoc-mode.el
+++ b/adoc-mode.el
@@ -999,7 +999,7 @@ When LITERAL-P is non-nil, the contained text is literal 
text."
          '(1 '(face adoc-delimiter adoc-reserved t))) 
    ;; comment
    ;; ^//(?P<passtext>[^/].*|)$=#comment[normal]
-   (list "^\\(//.*\n\\)"
+   (list "^\\(//\\(?:[^/].*\\|\\)\n\\)"
          '(1 '(face adoc-comment adoc-reserved t)))    
    ;; image
    (list "^\\(\\(image::\\)\\([^ \t\n]*?\\)\\(\\[.*?\\]\\)\\)[ \t]*$"

Reply via email to