ActionsLike0
Bug #13798
closedStrange "invalid subexp call" warning happens inside of comment
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-08-10 trunk 59556) [x86_64-darwin15]
Description
Attached script renders "invalid subexp call" warning.
zsh % ruby warn.rb
warn.rb:4: warning: invalid subexp call
This is strange in several ways:
- The warning is triggered by Regexp#to_s, not by the compilation.
- There is no such thing like a subexp call in the regular expression.
Files
Updated by nobu (Nobuyoshi Nakada) over 7 years ago
- Status changed from Open to Closed
Applied in changeset trunk|r59574.
re.c: options for sub-regexp
- re.c (rb_reg_to_s): needs embedded options to check syntax of
sub-regexp. [ruby-core:82328] [Bug #13798]
ActionsLike0