mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Move RDoc --
/++
directives to comments
This commit is contained in:
parent
2dcaeb75ff
commit
be56033248
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class Prelude
|
|||
line.rstrip!
|
||||
lineno += 1
|
||||
@preludes[filename] ||= result
|
||||
comment = ($1 || '' if line.sub!(/(?:^|\s+)\#(?:$|[#\s](.*))/, ''))
|
||||
comment = ($1 || '' if line.sub!(/(?:^|\s+)\#(?!\{)(?:$|(?:[#\s]|(?=\W))(.*))/, ''))
|
||||
if !line.empty? or start_line
|
||||
line << "\n"
|
||||
start_line ||= lineno
|
||||
|
|
Loading…
Reference in a new issue