Actions
Bug #19743
closedRuby's parser seems to ignoring DOT at the end of file just after digits
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.0dev (2023-06-19T09:28:10Z master 2a80bac9f0) [x86_64-linux]
Description
I expect all to be syntax error
eval "puts 1." #=> 1
eval "puts 1. " #=> syntax error
eval "puts 1.\n" #=> syntax error
For ripper, period token is missing
Ripper.tokenize("1.") #=> ["1"]
Ripper.tokenize("1. ") #=> ["1", ".", " "]
Actions
Like0
Like0Like0Like0