Adjut indent [ci skip]
This commit is contained in:
parent
51021fc710
commit
1912bf5461
Notes:
git
2023-01-02 08:35:46 +00:00
@ -113,11 +113,11 @@ class TestRipper::ScannerEvents < Test::Unit::TestCase
|
|||||||
[[5, 0], :on_imaginary, "5.6ri", Ripper::EXPR_END],
|
[[5, 0], :on_imaginary, "5.6ri", Ripper::EXPR_END],
|
||||||
],
|
],
|
||||||
Ripper.lex("1r\n2i\n3ri\n4.2r\n5.6ri")
|
Ripper.lex("1r\n2i\n3ri\n4.2r\n5.6ri")
|
||||||
assert_lex [[[1, 0], :on_heredoc_beg, "<<~EOS", Ripper::EXPR_BEG],
|
assert_lex [[[1, 0], :on_heredoc_beg, "<<~EOS", Ripper::EXPR_BEG],
|
||||||
[[1, 6], :on_nl, "\n", Ripper::EXPR_BEG],
|
[[1, 6], :on_nl, "\n", Ripper::EXPR_BEG],
|
||||||
[[2, 0], :on_ignored_sp, " ", Ripper::EXPR_BEG],
|
[[2, 0], :on_ignored_sp, " ", Ripper::EXPR_BEG],
|
||||||
[[2, 2], :on_tstring_content, "heredoc\n", Ripper::EXPR_BEG],
|
[[2, 2], :on_tstring_content, "heredoc\n", Ripper::EXPR_BEG],
|
||||||
[[3, 0], :on_heredoc_end, "EOS", Ripper::EXPR_BEG]
|
[[3, 0], :on_heredoc_end, "EOS", Ripper::EXPR_BEG]
|
||||||
],
|
],
|
||||||
Ripper.lex("<<~EOS\n heredoc\nEOS")
|
Ripper.lex("<<~EOS\n heredoc\nEOS")
|
||||||
assert_lex [[[1, 0], :on_tstring_beg, "'", Ripper::EXPR_BEG],
|
assert_lex [[[1, 0], :on_tstring_beg, "'", Ripper::EXPR_BEG],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user