You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Surfaced by the parserless keyword-family decoy runner (tests/tools/family_decoy_runner.py, part of #8863):
OCaml (gitgalaxy/standards/language_standards/languages/ocaml.py) currently sets lexical_family: "recursive_block", which only strips C-style // and /* ... */ comments. OCaml's actual comment syntax (* ... *) (including nested block comments) is not stripped by Prism.split_streams(), so 34 of 35 code-stream keyword families fire on keywords inside OCaml comments.
(F# also supports (* ... *) block comments in addition to //, so adding (* ... *) support to Prism will benefit both OCaml and F#.)
Repro
fromgitgalaxy.core.prismimportPrismfromgitgalaxy.standards.gitgalaxy_configimportLEXICAL_FAMILY_HEURISTICSfromgitgalaxy.standards.language_standardsimportLANGUAGE_DEFINITIONSp=Prism(LEXICAL_FAMILY_HEURISTICS, LANGUAGE_DEFINITIONS)
res=p.split_streams("(* if open_in failwith *)\n", "ocaml")
# Expected: code_stream has no keywords, comment_stream holds the comment# Actual: code_stream == "(* if open_in failwith *)\n", comment_stream == ""
Claimed by promoter-bot host nyx, lease renewed 2026-11-27T00:01Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove the claim:nyx label.
Activity
squid-protocol commentedon Nov 26, 2026
Claimed by promoter-bot host
nyx, lease renewed 2026-11-27T00:01Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove theclaim:nyxlabel.prism: OCaml (* *) block comments go to the comment stream via a recu…