Skip to content

Incomplete parse of pattern (A.6.7.1) #112

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bryceberger opened this issue Apr 22, 2025 · 0 comments · May be fixed by #113
Open

Incomplete parse of pattern (A.6.7.1) #112

bryceberger opened this issue Apr 22, 2025 · 0 comments · May be fixed by #113

Comments

@bryceberger
Copy link

dalance/svlint#296 (comment)

sv-parser rejects the following code:

module M();
  always_comb
    if (a matches (tagged Jmp .j))
               // ^ doesn't like this paren
      b = 1;
endmodule

The relevant section in IEEE 1800-2023 is A.6.7.1 Patterns, which contains the following rule:

pattern ::=
    '(' pattern ')'
  | ... rest of definition
@bryceberger bryceberger linked a pull request Apr 22, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant