Actions
Bug #3765
closedRipper::Lexer missed out tokens after '=>' operator
Status:
Rejected
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.1p376 (2009-12-07 revision 26041) [x86_64-linux]
Backport:
Description
=begin
Given the following ripper use case:
pp Ripper.lex(':x => 1')
I'm getting:
[[[1, 0], :on_symbeg, ":"],
[[1, 1], :on_ident, "x"],
[[1, 2], :on_sp, " "],
[[1, 3], :on_op, "=>"]]
I'm thinking the output should be:
[[[1, 0], :on_symbeg, ":"],
[[1, 1], :on_ident, "x"],
[[1, 2], :on_sp, " "],
[[1, 3], :on_op, "=>"],
[[1, 4], :on_sp, " "],
[[1, 5], :on_int, "1"]]
Somehow the trailing ' 1' is missed out. Seems like a bug ?
=end
Actions
Like0
Like0Like0