Project

General

Profile

Actions

Bug #12256

closed

multiline regex parses '/' in a comment

Added by ag4ve (shawn wilson) almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:74837]

Description

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) t.rb ag4ve (shawn wilson), 04/07/2016 08:48 AM

Updated by ag4ve (shawn wilson) almost 8 years ago

  • Description updated (diff)
Actions #2

Updated by nobu (Nobuyoshi Nakada) almost 8 years ago

  • Status changed from Open to Closed

Applied in changeset r54510.


regexp.rdoc: terminators in comments [ci skip]

Updated by nobu (Nobuyoshi Nakada) almost 8 years ago

  • Description updated (diff)

No way to know if it will have x option at reading that '#'.

Updated by usa (Usaku NAKAMURA) almost 8 years ago

  • Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: WONTFIX, 2.2: REQUIRED, 2.3: REQUIRED

Updated by usa (Usaku NAKAMURA) almost 8 years ago

  • Backport changed from 2.1: WONTFIX, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: WONTFIX, 2.2: DONE, 2.3: REQUIRED

ruby_2_2 r54697 merged revision(s) 54510.

Updated by nagachika (Tomoyuki Chikanaga) almost 8 years ago

  • Backport changed from 2.1: WONTFIX, 2.2: DONE, 2.3: REQUIRED to 2.1: WONTFIX, 2.2: DONE, 2.3: DONE

ruby_2_3 r54709 merged revision(s) 54510.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0