Skip to content

fix(dncl): 日本語モードのエディタで「@brackets token returned but no bracket defined as: 【」のエラーが出る #2255

Closed

Description

@smalruby3-editor-bot

なにが起きているか

日本語モード(日本語タブ)の Monaco エディタで、ページのエラーが出る:

Error: dncl: @brackets token returned but no bracket defined as: 【

【外部からの入力】 などを含むプログラムで出る。packages/scratch-gui/src/containers/ruby-tab/dncl-mode.js の tokenizer が @brackets を返しているのに、言語設定の brackets に 【 】 が無い。

topic/japanese-mode-1731 にもとからあるもの(#1758 の作業中に気づいた)。

直し方の案

  • brackets に ['【', '】', 'delimiter.bracket'] を足すか、tokenizer で 【…】 を @brackets ではなく固定のトークン型にする。
  • テスト: dncl-mode.js の unit テストで、【 を含む行をトークン化してもエラーにならないこと。

親: #1731。PR は topic/japanese-mode-1731 宛て。

Activity

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

    @smalruby3-editor-bot
    Author

    topic/japanese-mode-1731 にマージしました(PR #2256 / #2257)。

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