Actions
Bug #20732
closedprism emits "mismatched indentations" warning in eval
Description
eval(<<-EOC)
if @check
end
EOC
$ ruby --parser=parse.y -w t.rb
$ ruby --parser=prism -w t.rb
(eval at t.rb:1):2: warning: mismatched indentations at 'end' with 'if' at 1
This issue actually occurs in rss gem.
https://github.com/ruby/rss/blob/8a5b056eab591525e9c14ae1cd6e97ebae386be8/lib/rss/rss.rb#L214-L220
https://github.com/ruby/rss/blob/8a5b056eab591525e9c14ae1cd6e97ebae386be8/lib/rss/rss.rb#L316-L321
Updated by kddnewton (Kevin Newton) about 2 months ago
I have opened https://github.com/ruby/ruby/pull/11618 to fix this.
Updated by kddnewton (Kevin Newton) about 2 months ago
- Status changed from Open to Closed
Applied in changeset git|74f315c3f5908512dfdeeab2dd76d93e98149769.
[PRISM] Turn off mismatched indentation warnings in eval
Fixes [Bug #20732]
Actions
Like0
Like0Like0