branch: externals/cm-mode
commit 8ee6bc4eb1b32eca39008b772e730121b98a082c
Author: Joost Kremers <[email protected]>
Commit: Joost Kremers <[email protected]>
Fix placement of read-only text properties on markup tags.
cm-mode.el (cm-font-lock-for-markup): make regexp group inactive.
---
cm-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cm-mode.el b/cm-mode.el
index 8468d47c4a..478e342ec4 100644
--- a/cm-mode.el
+++ b/cm-mode.el
@@ -246,7 +246,7 @@ it is added automatically."
(add-to-list 'font-lock (mapconcat #'(lambda (elt) ; first we create the
regexp to match
(regexp-opt (list elt) t))
markup
- "\\([[:ascii:]]\\|[[:nonascii:]]\\)*?"))
+
"\\(?:[[:ascii:]]\\|[[:nonascii:]]\\)*?"))
(add-to-list 'font-lock `(0 ,face prepend) t) ; the highlighter for the
entire change
(dotimes (n (length markup))
(add-to-list 'font-lock `(,(1+ n) '(face ,face read-only t)) t) ; make
the tags read-only