Skip to content

fix(ja-notation): walk the syntax trees without recursion (L4) #2270

Closed

Description

@smalruby3-editor-bot

何をするか

日本語モード EPIC #1731 の確認ページの答え L4(J3・J4 の申し送り)。

ja-notation の構文木を再帰でたどる処理(日本語の読み方 parse、build-ruby、write-ruby、read-ruby、write-ja など)を、深い式・長い並びで落ちない形(明示的なスタックのくり返し)にする。

  • いまは、項が数千ある式(x = 1 + 1 + … + 1)・数千重ねたかっこ・符号・呼び出し・深いブロックで、JavaScript の呼び出しのスタックが尽きる(RangeError)。
  • 数千項の式のテストを足す(Ruby → 日本語は prism が解析できる範囲で)。

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