summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-07-15 20:51:04 +0100
committerAlan Pearce2014-07-15 20:51:04 +0100
commit80f13cdc3b95b664af1afa6e4fa33b27626a40ab (patch)
tree1cd529ed6825e3fb163f85a17887ec286a01b512
parent09d20bc7afc9291ed47a253a1775a89108697bd4 (diff)
downloaddotfiles-80f13cdc3b95b664af1afa6e4fa33b27626a40ab.tar.lz
dotfiles-80f13cdc3b95b664af1afa6e4fa33b27626a40ab.tar.zst
dotfiles-80f13cdc3b95b664af1afa6e4fa33b27626a40ab.zip
Emacs: Simplify php-sql to work with heredocs only
-rw-r--r--tag-emacs/emacs.d/init.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 4b8f45d..97927e6 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -1115,8 +1115,8 @@
             (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