Skip to content

[bug] Near-token syntax errors echo a reconstructed source line instead of the physical input line ({ :; } } case) #285

Closed

Description

@caomengxuan666

wt7/resid1 pre-existing: for near-token errors like { :; } }, the offending-line echo prints a reconstructed :; } rather than the physical input line (parse.y:6813 print_offending_line prints the real line).

Activity

  1. caomengxuan666 commented on Sep 28, 2026

    @caomengxuan666
    MemberAuthor

    Fixed by resid3 lane bc6e6da7 (master 7a10832): lexer diagnostics now echo the physical offending line (parse.y:6813-6826 model). Acceptance: 6-scenario probe byte-identical to WSL GNU Bash 5.3.0 (}, fi, done, esac, (, else families), rc=2 on both sides.

  2. added a commit that references this issue on Sep 28, 2026
  3. 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