Skip to content

prism: Easytrieve column-1 * comments leak into code_stream (4/6 keyword families affected) #9304

Done

Description

@squid-protocol

Bug

Surfaced by the parserless keyword-family decoy runner (tests/tools/family_decoy_runner.py, part of #8863):

Easytrieve Plus (gitgalaxy/standards/language_standards/languages/easytrieve.py) uses column-1 * lines for comments (like HLASM/BMS/ABAP), but Prism.split_streams() currently strips only # comments for easytrieve. As a result, * ... comment lines remain in code_stream and trigger 4 of 6 code-stream keyword families.

Repro

from gitgalaxy.core.prism import Prism
from gitgalaxy.standards.gitgalaxy_config import LEXICAL_FAMILY_HEURISTICS
from gitgalaxy.standards.language_standards import LANGUAGE_DEFINITIONS

p = Prism(LEXICAL_FAMILY_HEURISTICS, LANGUAGE_DEFINITIONS)
res = p.split_streams("* IF GET STOP\n", "easytrieve")
# Expected: code_stream has no keywords, comment_stream holds "* IF GET STOP\n"
# Actual:   code_stream == "* IF GET STOP\n", comment_stream == ""

Affected Families (4/6)

  • branch (IF)
  • high_risk_execution (STOP)
  • io (GET)
  • panics_and_aborts (STOP)

Suggested Fix

Configure easytrieve.py's lexical_family (like abap / hlasm / bms) so column-1 * comment lines are stripped into comment_stream, then re-run python tests/tools/family_decoy_runner.py --lang easytrieve --write.

Activity

  1. squid-protocol commented on Nov 26, 2026

    @squid-protocol
    OwnerAuthor

    Claimed by promoter-bot host nyx, lease renewed 2026-11-26T21:57Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:nyx label.

  2. added a commit that references this issue on Nov 27, 2026
    629eab5
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions