branch: master
commit cc0e3d94b5c040647c6259787f7eeb6b9f13f0bf
Merge: 628e1dc 42ecef5
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>

    Merge pull request #35 from knu/fix-html-php
    
    Allow omitting the close tag of the last PHP code block.
---
 mmm-sample.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mmm-sample.el b/mmm-sample.el
index 6320a31..0f31ae2 100644
--- a/mmm-sample.el
+++ b/mmm-sample.el
@@ -320,7 +320,7 @@ and MODE is a major mode function symbol.")
     :submode php-mode
     :face mmm-output-submode-face
     :front "<\\?php *echo "
-    :back "\\?>"
+    :back "\\(\\?>\\|\\'\\)"
     :include-front t
     :front-offset 5
     :insert ((?e php-echo nil @ "<?php" @ " echo " _ " " @ "?>" @))
@@ -329,7 +329,7 @@ and MODE is a major mode function symbol.")
     :submode php-mode
     :face mmm-code-submode-face
     :front "<\\?\\(php\\)?"
-    :back "\\?>"
+    :back "\\(\\?>\\|\\'\\)"
     :insert ((?p php-section nil @ "<?php" @ " " _ " " @ "?>" @)
              (?b php-block nil @ "<?php" @ "\n" _ "\n" @ "?>" @))
     )))

Reply via email to