Skip to content

[parser] 空体诊断 token 邻域分歧:near newline vs near ( #565

Closed

Description

@caomengxuan666

[ ( 函数定义括号后直接换行/空体:诊断 token 邻域分歧(C4 验收外)

发现渠道:#551 消息格式族清扫(C4 验收三格已全绿,此为邻域残留)。

复现:[ ( 后直接换行/空体——GNU 报 near 'newline',rubash 报 near '('。

判定:诊断措辞邻域分歧([ 测试命令语境下 ( 不构成函数定义括号——与 #563 修的 C4b "( 跟 WORD 是函数定义括号(parse.y:3774)"同区域但不同格)。锚定 parse.y:3774 邻域与 [/[[ 的命令位分类。

Activity

  1. caomengxuan666 commented on Oct 12, 2026

    @caomengxuan666
    MemberAuthor

    Fixed by the Wave4c batch (this PR). Vendored-bash anchors and RED-then-GREEN regression evidence in the PR.

  2. added
    bug
    area:parser
    on Oct 17, 2026
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

    area:parserbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions