branch: externals/cm-mode
commit 1838e200233f75e70cbb35934bec26fc04884ba8
Author: Joost Kremers <[email protected]>
Commit: Joost Kremers <[email protected]>

    Bug fix: adjust substitution substring regexp in cm-substitution-string
---
 cm-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cm-mode.el b/cm-mode.el
index 713e42d73d..c333f18a07 100644
--- a/cm-mode.el
+++ b/cm-mode.el
@@ -516,7 +516,7 @@ substitutions, `d' for comments and highlights."
      ((eq type 'cm-deletion)
       (if action "" (substring text 2 -2)))
      ((eq type 'cm-substitution)
-      (string-match "{~~\\(.*?\\)~>\\(.*?\\)~~}" text)
+      (string-match "~~\\(.*?\\)~>\\(.*?\\)~~" text)
       (match-string (if action 2 1) text))
      ((and (eq type 'cm-comment)
            (eq action ?d))

Reply via email to