Skip to content

fix(ja-notation): tell a closing word of another kind of block (W3) #2268

Closed

Description

@smalruby3-editor-bot

何をするか

日本語モード EPIC #1731 の確認ページの答え W3。

DNCL 風の形で、閉じる言葉とブロックの種類が合わないとき(もし を を繰り返す で閉じる、数える繰り返しを を実行する で閉じる、など)を誤りにする(初心者に少しでも多く指摘したい)。これまでは数が合えば Ruby の end と同じく、いちばん内側のブロックを閉じていた。

  • 文は行のわかる日本語で、正しい閉じる言葉を示す(「「もし〜ならば」は「を繰り返す」ではなく「を実行する」で閉じてください」)。
  • 標準の形(字下げ)では閉じる言葉を書かないので関係しない。: で開いたブロックを同じ字下げの閉じの行で閉じたときは同じく照らし合わせる。
  • end は Ruby と同じく、どのブロックも閉じる(AI の推奨)。

Activity

  1. smalruby3-editor-bot commented on Nov 19, 2026

    @smalruby3-editor-bot
    Author

    topic/japanese-mode-1731 にマージしました(PR #2263 / #2267 / #2269 / #2271)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions