Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Improved (but still disabled) ruby-heredoc-sql mmm class

  • Loading branch information...
commit 515cb8fe87c998a2e82a6e1c13f685dc2bf4c5e6 1 parent 005e5d0
@purcell authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 init-ruby-mode.el
View
8 init-ruby-mode.el
@@ -85,7 +85,13 @@
;; (eval-after-load 'mmm-mode
;; '(progn
;; (mmm-add-classes
-;; '((ruby-heredoc-sql :submode sql-mode :front "<<-?end_sql.*\r?\n" :back "[ \t]*end_sql" :face mmm-code-submode-face)))
+;; '((ruby-heredoc-sql
+;; :submode sql-mode
+;; :front "<<-?[\'\"]?\\(end_sql\\)[\'\"]?"
+;; :save-matches 1
+;; :front-offset (end-of-line 1)
+;; :back "^[ \t]*~1$"
+;; :delimiter-mode nil)))
;; (mmm-add-mode-ext-class 'ruby-mode "\\.rb\\'" 'ruby-heredoc-sql)))
Please sign in to comment.
Something went wrong with that request. Please try again.