summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-28 14:14:59 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-28 14:14:59 +0000
commit94cd6695126ab1b24be532c0f6a1b5682c6cc35b (patch)
tree5f631b4a068f29c92315855b6a7011166b139d61 /test
parent0ace3d4eab1721a2d5cf9750af19db2012121ff3 (diff)
merges r24557 from trunk into ruby_1_9_1.
-- * parse.y (yylex): should dispatch scan-event even when follows just after delayed-token. [ruby-dev:37855] [Bug #1071] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@25534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ripper/test_scanner_events.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb
index 438994610..659916570 100644
--- a/test/ripper/test_scanner_events.rb
+++ b/test/ripper/test_scanner_events.rb
@@ -63,6 +63,11 @@ class TestRipper_ScannerEvents < Test::Unit::TestCase
[[2, 0], :on_tstring_content, "heredoc\n"],
[[3, 0], :on_heredoc_end, "EOS"]],
Ripper.lex("<<EOS\nheredoc\nEOS")
+ assert_equal [[[1, 0], :on_regexp_beg, "/"],
+ [[1, 1], :on_tstring_content, "foo\n"],
+ [[2, 0], :on_tstring_content, "bar"],
+ [[2, 3], :on_regexp_end, "/"]],
+ Ripper.lex("/foo\nbar/")
end
def test_location