Skip to content

fix(sv): lex a colon before a comment as a colon - #1851

Merged
mergify[bot] merged 1 commit into
masterfrom
fix/sv-colon-before-comment
Oct 24, 2026
Merged

mergify[bot] merged 1 commit into
masterfrom
fix/sv-colon-before-comment

Conversation

@tignear

@tignear tignear commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

The lexer matched the :/ distribution-weight operator before looking
for a comment, so 3'b000://comment became :/ followed by
/comment and failed to parse. XuanTie C906 (openc906) uses this form
in case items. A :/ operator is always followed by an expression,
and no expression starts with / or *, so a :/ immediately
followed by / or * now lexes as : and leaves the comment intact.
IEEE 1800-2023 5.4 defines // and /* as comment starts; previously
valid input is unaffected.

Validation:

  • celox-sv-syntax: 122 tests passed, including a new lexer test;
    Clippy with -D warnings and formatting passed.
  • No sv-tests case at the pinned revision contains :/ followed by
    / or *, so conformance expectations are unchanged.
  • The rtlmeter XuanTie-C906 sources now get past this parse error.

Change-Id: Ia3b604411f360405318fefce2dede32249f1b8e6

The lexer matched the `:/` distribution-weight operator before looking
for a comment, so `3'b000://comment` became `:/` followed by
`/comment` and failed to parse. XuanTie C906 (openc906) uses this form
in case items. A `:/` operator is always followed by an expression,
and no expression starts with `/` or `*`, so a `:/` immediately
followed by `/` or `*` now lexes as `:` and leaves the comment intact.
IEEE 1800-2023 5.4 defines `//` and `/*` as comment starts; previously
valid input is unaffected.

Validation:
- celox-sv-syntax: 122 tests passed, including a new lexer test;
  Clippy with -D warnings and formatting passed.
- No sv-tests case at the pinned revision contains `:/` followed by
  `/` or `*`, so conformance expectations are unchanged.
- The rtlmeter XuanTie-C906 sources now get past this parse error.

Change-Id: Ia3b604411f360405318fefce2dede32249f1b8e6
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T04:46:23.942336Z 2aeaaed PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@tignear tignear added the merge-ready Request merging through Mergify after required checks label Oct 24, 2026
@mergify mergify Bot added the queued Mergify queue entry label Oct 24, 2026
@mergify

mergify Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

This pull request spent 1 hour 28 minutes 33 seconds in the queue, including 56 minutes 3 seconds running CI.

Required conditions to merge
  • check-success = Conventional Commit title
  • check-success = Queue validation
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Lint & Format
    • check-neutral = @github-actions/Lint & Format
    • check-skipped = @github-actions/Lint & Format
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-neutral = @github-actions/NAPI Build (Linux ARM64 GNU)
    • check-skipped = @github-actions/NAPI Build (Linux ARM64 GNU)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/NAPI Build (Windows)
    • check-neutral = @github-actions/NAPI Build (Windows)
    • check-skipped = @github-actions/NAPI Build (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Rust Test & NAPI Build
    • check-neutral = @github-actions/Rust Test & NAPI Build
    • check-skipped = @github-actions/Rust Test & NAPI Build
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Ubuntu)
    • check-neutral = @github-actions/JS Test (Ubuntu)
    • check-skipped = @github-actions/JS Test (Ubuntu)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/JS Test (Windows)
    • check-neutral = @github-actions/JS Test (Windows)
    • check-skipped = @github-actions/JS Test (Windows)
  • any of [🛡 GitHub repository ruleset rule master]:
    • check-success = @github-actions/Conventional Commit title
    • check-neutral = @github-actions/Conventional Commit title
    • check-skipped = @github-actions/Conventional Commit title

@mergify
mergify Bot merged commit 35e2e24 into master Oct 24, 2026
30 checks passed
@mergify
mergify Bot deleted the fix/sv-colon-before-comment branch October 24, 2026 07:31
@mergify mergify Bot removed the queued Mergify queue entry label Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-ready Request merging through Mergify after required checks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant