Skip to content

Commit

Permalink
Merge pull request honza#293 from filipegiusti/master
Browse files Browse the repository at this point in the history
eruby: Create '=' and '%' UltiSnips format shortcuts for eruby files
  • Loading branch information
SirVer committed Nov 26, 2013
2 parents 376007d + f4d4005 commit 8934055
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions UltiSnips/eruby.snippets
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ def textmate_var(var, snip):
endglobal


snippet % "<% ${0} %>"
`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_INLINE', snip)`${0}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_INLINE', snip)`
endsnippet

snippet = "<%= ${0} %>"
`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`${0}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)`
endsnippet

###########################################################################
# GENERATED FROM get_tm_snippets.py + REGEX REPLACE #
###########################################################################
Expand Down

0 comments on commit 8934055

Please sign in to comment.