diff --git a/lib/rails-snippets.coffee b/lib/rails-snippets.coffee index f7d31d8..572ac8f 100644 --- a/lib/rails-snippets.coffee +++ b/lib/rails-snippets.coffee @@ -3,7 +3,7 @@ {CompositeDisposable} = require 'atom' # erb supported blocks -ERB_BLOCKS = [['<%=', '%>'], ['<%', '%>'], ['<%#', '%>']] +ERB_BLOCKS = [['<%=', '%>'], ['<%', '%>'], ['<%-', '-%>'], ['<%=', '-%>'], ['<%#', '%>'], ['<%', '-%>']] ERB_REGEX = '<%(=?|-?|#?)\s{2}(-?)%>' # matches the opening bracket ERB_OPENER_REGEX = '<%[\\=\\#]?'