Skip to content

Commit 8934055

Browse files
committed
Merge pull request #293 from filipegiusti/master
eruby: Create '=' and '%' UltiSnips format shortcuts for eruby files
2 parents 376007d + f4d4005 commit 8934055

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

UltiSnips/eruby.snippets

+8
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ def textmate_var(var, snip):
2424
endglobal
2525

2626

27+
snippet % "<% ${0} %>"
28+
`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_INLINE', snip)`${0}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_INLINE', snip)`
29+
endsnippet
30+
31+
snippet = "<%= ${0} %>"
32+
`!p textmate_var('TM_RAILS_TEMPLATE_START_RUBY_EXPR', snip)`${0}`!p textmate_var('TM_RAILS_TEMPLATE_END_RUBY_EXPR', snip)`
33+
endsnippet
34+
2735
###########################################################################
2836
# GENERATED FROM get_tm_snippets.py + REGEX REPLACE #
2937
###########################################################################

0 commit comments

Comments
 (0)