Skip to content

Commit f4d4005

Browse files
committed
Create '=' and '%' UltiSnips format shortcuts for eruby files
That matches the snippets for snipmate
1 parent 376007d commit f4d4005

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)