Merge pull request #293 from filipegiusti/master
eruby: Create '=' and '%' UltiSnips format shortcuts for eruby files
This commit is contained in:
commit
8934055aec
@ -24,6 +24,14 @@ def textmate_var(var, snip):
|
|||||||
endglobal
|
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 #
|
# GENERATED FROM get_tm_snippets.py + REGEX REPLACE #
|
||||||
###########################################################################
|
###########################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user