emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master cc0e3d9 382/433: Merge pull request #35 from knu/fix-html-


From: Dmitry Gutov
Subject: [elpa] master cc0e3d9 382/433: Merge pull request #35 from knu/fix-html-php
Date: Thu, 15 Mar 2018 19:44:40 -0400 (EDT)

branch: master
commit cc0e3d94b5c040647c6259787f7eeb6b9f13f0bf
Merge: 628e1dc 42ecef5
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    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

[Prev in Thread] Current Thread [Next in Thread]