1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_erb.rb: escape

* test/erb/test_erb.rb (test_token_extension): escape % in
  dedented heredoc for editors which do not support this syntax
  yet.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-01-29 02:13:38 +00:00
parent cb50da1dc0
commit 1c3a3f47dc

View file

@ -523,9 +523,9 @@ EOS
end
src = <<~EOS
<% tag = '<>' %>
<%= tag %>
<%== tag %>
<% tag = '<>' \%>
<\%= tag \%>
<\%== tag \%>
EOS
ans = <<~EOS