summaryrefslogtreecommitdiff
path: root/test/ripper
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-12 07:55:17 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-12 07:55:17 +0000
commit7773cfa496fe04b4d4712beddfdcca3c052ee153 (patch)
tree39e22bb5e9bd034330c08e6114a6b5e104b54962 /test/ripper
parent26eb7b3d8e011fa31f5a7f4c8c95440d11488c82 (diff)
ripper: fix escaped space
* parse.y: use tSP same as ripper instead of tSPACE. [ruby-core:86080] [Bug #14597] * ext/ripper/eventids2.c: tSP is defined in ripper.c now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ripper')
-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 034748d805..c9fce34a77 100644
--- a/test/ripper/test_scanner_events.rb
+++ b/test/ripper/test_scanner_events.rb
@@ -840,6 +840,11 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase
scan('sp', "%w( w )")
assert_equal [],
scan('sp', "p(/ /)")
+
+ assert_equal ["\\\n"],
+ scan('sp', "\\\n")
+ assert_equal ['\ '],
+ scan('sp', '\ ')
end
# `nl' event always means End-Of-Statement.