diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-16 14:58:27 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-08-16 14:58:27 +0000 |
commit | 114f01bd9d1a9dc28d62a1a25b31a210bf871bbc (patch) | |
tree | 905f2c11ccef43307a381079e0285187093c7b14 /test/ripper/test_scanner_events.rb | |
parent | aa3c6d4dd28366b3d51f3a126267f58387f6dbe7 (diff) | |
download | ruby-114f01bd9d1a9dc28d62a1a25b31a210bf871bbc.tar.gz |
* parse.y (yylex): should dispatch scan-event even when follows
just after delayed-token. [ruby-dev:37855] [Bug #1071]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ripper/test_scanner_events.rb')
-rw-r--r-- | test/ripper/test_scanner_events.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ripper/test_scanner_events.rb b/test/ripper/test_scanner_events.rb index 4389946104..6599165700 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 |