From: "kddnewton (Kevin Newton) via ruby-core" Date: 2024-09-13T15:26:30+00:00 Subject: [ruby-core:119177] [Ruby master Bug#20732] prism emits "mismatched indentations" warning in eval Issue #20732 has been updated by kddnewton (Kevin Newton). I have opened https://github.com/ruby/ruby/pull/11618 to fix this. ---------------------------------------- Bug #20732: prism emits "mismatched indentations" warning in eval https://bugs.ruby-lang.org/issues/20732#change-109755 * Author: mame (Yusuke Endoh) * Status: Open * Assignee: kddnewton (Kevin Newton) * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN ---------------------------------------- ```ruby 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 -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/