Merge pull request #193 from jinzhu/patch-1
Fix issues in eruby.snippets
This commit is contained in:
commit
58a7289e55
@ -14,9 +14,9 @@ def textmate_var(var, snip):
|
|||||||
lookup = dict(
|
lookup = dict(
|
||||||
TM_RAILS_TEMPLATE_START_RUBY_EXPR = snip.opt('g:tm_rails_template_start_ruby_expr', '<%= '),
|
TM_RAILS_TEMPLATE_START_RUBY_EXPR = snip.opt('g:tm_rails_template_start_ruby_expr', '<%= '),
|
||||||
TM_RAILS_TEMPLATE_END_RUBY_EXPR = snip.opt('g:tm_rails_template_end_ruby_expr', ' %>'),
|
TM_RAILS_TEMPLATE_END_RUBY_EXPR = snip.opt('g:tm_rails_template_end_ruby_expr', ' %>'),
|
||||||
TM_RAILS_TEMPLATE_START_RUBY_INLINE = snip.opt('g:tm_rails_template_start_ruby_inline', ' %>'),
|
TM_RAILS_TEMPLATE_START_RUBY_INLINE = snip.opt('g:tm_rails_template_start_ruby_inline', '<% '),
|
||||||
TM_RAILS_TEMPLATE_END_RUBY_INLINE = snip.opt('g:tm_rails_template_end_ruby_inline', ' %>'),
|
TM_RAILS_TEMPLATE_END_RUBY_INLINE = snip.opt('g:tm_rails_template_end_ruby_inline', ' %>'),
|
||||||
TM_RAILS_TEMPLATE_END_RUBY_BLOCK = 'end'
|
TM_RAILS_TEMPLATE_END_RUBY_BLOCK = '<% end %>'
|
||||||
)
|
)
|
||||||
|
|
||||||
snip.rv = lookup[var]
|
snip.rv = lookup[var]
|
||||||
|
Loading…
Reference in New Issue
Block a user