[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 42ecef5 381/433: Allow omitting the close tag of the last
From: |
Dmitry Gutov |
Subject: |
[elpa] master 42ecef5 381/433: Allow omitting the close tag of the last PHP code block. |
Date: |
Thu, 15 Mar 2018 19:44:39 -0400 (EDT) |
branch: master
commit 42ecef5863b86b5ed332b049f8b63e5143f87db1
Author: Akinori MUSHA <address@hidden>
Commit: Akinori MUSHA <address@hidden>
Allow omitting the close tag of the last PHP code block.
It is common manners to omit the close tag to avoid the trailing newline
problem.
---
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" @ "?>" @))
)))
- [elpa] master 48ca941 270/433: *** empty log message ***, (continued)
- [elpa] master 48ca941 270/433: *** empty log message ***, Dmitry Gutov, 2018/03/15
- [elpa] master 42bbc22 238/433: * mmm-sample.el (here-doc): Added quotes to here-doc regexp., Dmitry Gutov, 2018/03/15
- [elpa] master 61b9cf4 325/433: Don't pass nil to mmm-set-local-variables, Dmitry Gutov, 2018/03/15
- [elpa] master 625353b 427/433: (Mostly) remove some earlier entries, Dmitry Gutov, 2018/03/15
- [elpa] master c548593 333/433: * mmm-set-local-variables: Default to mmm-primary-mode, Dmitry Gutov, 2018/03/15
- [elpa] master d652943 397/433: Fix invalid function call, Dmitry Gutov, 2018/03/15
- [elpa] master 50c054c 331/433: Don't recompute the current overlay in mmm-set-local-variables, Dmitry Gutov, 2018/03/15
- [elpa] master 357cee0 321/433: Revert "Refontify buffer when creating new region", Dmitry Gutov, 2018/03/15
- [elpa] master 8a24631 293/433: Add js-mode vars to `mmm-save-local-variables`, Dmitry Gutov, 2018/03/15
- [elpa] master 45cf811 309/433: Document nxml-mode based setup, Dmitry Gutov, 2018/03/15
- [elpa] master 42ecef5 381/433: Allow omitting the close tag of the last PHP code block.,
Dmitry Gutov <=
- [elpa] master ff6aa17 391/433: Update NEWS, Dmitry Gutov, 2018/03/15
- [elpa] master 8535a68 385/433: * Enable MMM in ERB and PHP files with just one extension (#36), Dmitry Gutov, 2018/03/15
- [elpa] master c6f199d 252/433: Tested for only javascript <script> tags (Joe Kelsey), Dmitry Gutov, 2018/03/15
- [elpa] master 8b9c1e7 303/433: Switch mmm-erb.el to unix line endings, and add closing comment line, Dmitry Gutov, 2018/03/15
- [elpa] master ac4822d 295/433: Merge pull request #4 from dgutov/js-fix, Dmitry Gutov, 2018/03/15
- [elpa] master 86cb980 426/433: Write TODO some more, Dmitry Gutov, 2018/03/15
- [elpa] master 0da2ac9 358/433: * mmm-syntax-propertize-function: Don't pass nil to mmm-set-local-variables, Dmitry Gutov, 2018/03/15
- [elpa] master e414b5b 314/433: Fix #12, Dmitry Gutov, 2018/03/15
- [elpa] master 631e7f1 408/433: Add c-symbol-char-key to the saved variables, Dmitry Gutov, 2018/03/15
- [elpa] master c493716 404/433: Revert "mmm-match-region: Return front-pos even without front-delim; likewise for back", Dmitry Gutov, 2018/03/15