all repos — archive/dotfiles @ 80f13cdc3b95b664af1afa6e4fa33b27626a40ab

Superseded by nixfiles

Emacs: Simplify php-sql to work with heredocs only
Alan Pearce alan@alanpearce.co.uk
Tue, 15 Jul 2014 20:51:04 +0100
commit

80f13cdc3b95b664af1afa6e4fa33b27626a40ab

parent

09d20bc7afc9291ed47a253a1775a89108697bd4

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -1115,8 +1115,8 @@ :config (progn             (mmm-add-classes
              '((php-sql
                 :submode sql-mode
-                :front "\\($\\(sql\\|query\\)\\s-*=\\s-*[\"']\\|<<<SQL\\)[\r\n]+"
-                :back "\\([\"']\\|SQL\\);?"
+                :front "<<<SQL[\r\n]+"
+                :back "SQL;?"
                 :face mmm-code-submode-face)))
             (mmm-add-mode-ext-class 'php-mode "\\.php$" 'php-sql)
             (mmm-add-classes