Skip to content

Commit

Permalink
Create '=' and '%' UltiSnips format shortcuts for eruby files
Browse files Browse the repository at this point in the history
That matches the snippets for snipmate
  • Loading branch information
filipegiusti committed Nov 25, 2013
1 parent 376007d commit f4d4005
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions UltiSnips/eruby.snippets
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 f4d4005

Please sign in to comment.