From: usa@... Date: 2021-03-02T11:22:17+00:00 Subject: [ruby-core:102707] [Ruby master Bug#16981] [ripper] mismatched indentations warning has disappeared since 2.6 Issue #16981 has been updated by usa (Usaku NAKAMURA). Backport changed from 2.5: DONTNEED, 2.6: REQUIRED, 2.7: DONE to 2.5: DONTNEED, 2.6: DONE, 2.7: DONE backported into ruby_2_6 at r67906. ---------------------------------------- Bug #16981: [ripper] mismatched indentations warning has disappeared since 2.6 https://bugs.ruby-lang.org/issues/16981#change-90701 * Author: nobu (Nobuyoshi Nakada) * Status: Closed * Priority: Normal * Assignee: nobu (Nobuyoshi Nakada) * Backport: 2.5: DONTNEED, 2.6: DONE, 2.7: DONE ---------------------------------------- ``` $ 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: