Skip to content

Commit

Permalink
Merge pull request #9 from arthurkatz/master
Browse files Browse the repository at this point in the history
add carousel snippets
  • Loading branch information
ngarnier authored Dec 6, 2016
2 parents dabd314 + 30518ea commit b0efef7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion settings/language-mjml.cson
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'editor':
'commentStart': '<!-- '
'commentEnd': ' -->'
'foldEndPattern': '(?x)\n\t\t(</(?i:head|body|mjml|mj-body|mj-container|mj-location|mj-table|mj-section|mj-raw|mj-column|mj-row|mj-social|mj-button|mj-text|mj-image|mj-include|mj-group|mj-head|mj-attributes|mj-font|mj-title|mj-spacer|mj-html|mj-hero|mj-hero-content|mj-all|mj-class|mj-style|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl|section|article|header|footer|nav|aside)>\n\t\t|^(?!.*?<!--).*?--\\s*>\n\t\t|^<!--\\ end\\ tminclude\\ -->$\n\t\t|<\\?(?:php)?.*\\bend(if|for(each)?|while)\\b\n\t\t|\\{\\{?/(if|foreach|capture|literal|foreach|php|section|strip)\n\t\t|^[^{]*\\}\n\t\t|^\\s*\\)[,;]\n\t\t)'
'foldEndPattern': '(?x)\n\t\t(</(?i:head|body|mjml|mj-body|mj-container|mj-location|mj-table|mj-section|mj-raw|mj-column|mj-row|mj-social|mj-button|mj-text|mj-image|mj-include|mj-group|mj-head|mj-attributes|mj-font|mj-title|mj-spacer|mj-html|mj-hero|mj-hero-content|mj-all|mj-class|mj-style|mj-carousel|mj-carousel-image|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|li|form|dl|section|article|header|footer|nav|aside)>\n\t\t|^(?!.*?<!--).*?--\\s*>\n\t\t|^<!--\\ end\\ tminclude\\ -->$\n\t\t|<\\?(?:php)?.*\\bend(if|for(each)?|while)\\b\n\t\t|\\{\\{?/(if|foreach|capture|literal|foreach|php|section|strip)\n\t\t|^[^{]*\\}\n\t\t|^\\s*\\)[,;]\n\t\t)'
'increaseIndentPattern': '(?x)
<(?!\\?|(?:area|base|br|col|frame|hr|html|img|input|link|meta|param)\\b|[^>]*/>)
([-_\\.A-Za-z0-9]+)(?=\\s|>)\\b[^>]*>(?!.*</\\1>)
Expand Down
12 changes: 12 additions & 0 deletions snippets/language-mjml.cson
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,18 @@
'body': """
<mj-style>\n\t$1\n</mj-style>
"""

'MJML Carousel':
'prefix': 'carousel'
'body': """
<mj-carousel>\n\t$1\n</mj-carousel>
"""

'MJML Carousel Image':
'prefix': 'carousel-image'
'body': """
<mj-carousel-image src="$1" />
"""

# MJML Template
'Basic MJML Template':
Expand Down

0 comments on commit b0efef7

Please sign in to comment.