[ruby-core:74838] [Ruby trunk Bug#12256] multiline regex parses '/' in a comment

From: ag4ve.us@...
Date: 2016-04-07 08:52:35 UTC
List: ruby-core #74838
Issue #12256 has been updated by shawn wilson.

Description updated

----------------------------------------
Bug #12256: multiline regex parses '/' in a comment
https://bugs.ruby-lang.org/issues/12256#change-57970

* Author: shawn wilson
* Status: Open
* Priority: Normal
* Assignee: 
* ruby -v: >1.9
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
line 41

line =~ /
  foo # bar/baz
/x

Should not parse beyond a bare '#' or the limitation should be documented

---Files--------------------------------
t.rb (2.33 KB)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next