ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:119154] [Ruby master Bug#20732] prism emits "mismatched indentations" warning in eval
@ 2024-09-13  1:28 mame (Yusuke Endoh) via ruby-core
  2024-09-13 15:26 ` [ruby-core:119177] " kddnewton (Kevin Newton) via ruby-core
  0 siblings, 1 reply; 2+ messages in thread
From: mame (Yusuke Endoh) via ruby-core @ 2024-09-13  1:28 UTC (permalink / raw)
  To: ruby-core; +Cc: mame (Yusuke Endoh)

Issue #20732 has been reported by mame (Yusuke Endoh).

----------------------------------------
Bug #20732: prism emits "mismatched indentations" warning in eval
https://bugs.ruby-lang.org/issues/20732

* 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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ruby-core:119177] [Ruby master Bug#20732] prism emits "mismatched indentations" warning in eval
  2024-09-13  1:28 [ruby-core:119154] [Ruby master Bug#20732] prism emits "mismatched indentations" warning in eval mame (Yusuke Endoh) via ruby-core
@ 2024-09-13 15:26 ` kddnewton (Kevin Newton) via ruby-core
  0 siblings, 0 replies; 2+ messages in thread
From: kddnewton (Kevin Newton) via ruby-core @ 2024-09-13 15:26 UTC (permalink / raw)
  To: ruby-core; +Cc: kddnewton (Kevin Newton)

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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-13 15:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-13  1:28 [ruby-core:119154] [Ruby master Bug#20732] prism emits "mismatched indentations" warning in eval mame (Yusuke Endoh) via ruby-core
2024-09-13 15:26 ` [ruby-core:119177] " kddnewton (Kevin Newton) via ruby-core

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).