Project

General

Profile

Actions

Bug #15764

open

Whitespace and control characters should not be permitted in tokens

Added by BatmanAoD (Kyle Strand) over 5 years ago. Updated 8 months ago.

Status:
Assigned
Target version:
-
[ruby-core:92249]
Tags:

Description

As of Ruby 2.5.1p57, it appears that all valid Unicode code-points above 128 are permitted in tokens. This includes whitespace and control characters.

This was demonstrated here: https://gist.github.com/qrohlf/7045823

I have attached the raw download from the above gist.

The issue has been discussed on StackOverflow: https://stackoverflow.com/q/34455427/1858225

I would say this is arguably a bug, but I am marking this ticket as a "feature" since the current behavior could be considered by-design.


Files

helloworld.rb (543 Bytes) helloworld.rb BatmanAoD (Kyle Strand), 04/11/2019 08:53 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0