summaryrefslogtreecommitdiffhomepage
path: root/test/t/syntax.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2014-04-30 10:27:05 +0900
committerNobuyoshi Nakada <[email protected]>2014-05-03 08:42:31 +0900
commit854ae564a34910fe3bd13a83a3d4bfa10cf0d838 (patch)
treea85dd32b1cc2c15a2d74e3c7d630cdba2016fa27 /test/t/syntax.rb
parent69c6ff7aa06045a3fdaf6a134041e9206cb95a9e (diff)
downloadmruby-854ae564a34910fe3bd13a83a3d4bfa10cf0d838.tar.gz
mruby-854ae564a34910fe3bd13a83a3d4bfa10cf0d838.zip
fix embedded documents
tabs are allowed after `=begin` and `=end`. raise `SyntaxError` if no =end is found.
Diffstat (limited to 'test/t/syntax.rb')
-rw-r--r--test/t/syntax.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/t/syntax.rb b/test/t/syntax.rb
index 0bb3fa389..05d4a15b1 100644
--- a/test/t/syntax.rb
+++ b/test/t/syntax.rb
@@ -307,5 +307,8 @@ this is a comment that has =end with spaces after it
=begin this is a comment
this is a comment that has extra after =begin and =end with spaces after it
=end
+=begin this is a comment
+this is a comment that has extra after =begin and =end with tabs after it
+=end
true
end