Issue #16981 has been reported by nobu (Nobuyoshi Nakada).

----------------------------------------
Bug #16981: [ripper] mismatched indentations warning has disappeared since 2.6
https://bugs.ruby-lang.org/issues/16981

* Author: nobu (Nobuyoshi Nakada)
* Status: Assigned
* Priority: Normal
* Assignee: nobu (Nobuyoshi Nakada)
* Backport: 2.5: DONTNEED, 2.6: REQUIRED, 2.7: REQUIRED
----------------------------------------
```
$ ruby2.5 -v -rripper -e 'r = Ripper.new("begin\n  end"); def r.warn(*e) p e; end; r.parse'
ruby 2.5.8p224 (2020-03-31 revision 67882) [x86_64-darwin19]
["mismatched indentations at '%s' with '%s' at %d", "end", "begin", 1]

$ ruby2.6 -v -rripper -e 'r = Ripper.new("begin\n  end"); def r.warn(*e) p e; end; r.parse'
ruby 2.6.6p146 (2020-03-31 revision 67876) [x86_64-darwin19]

$ ruby2.7 -v -rripper -e 'r = Ripper.new("begin\n  end"); def r.warn(*e) p e; end; r.parse'
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin19]
```



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>