chipsalliance / verible

Verible is a suite of SystemVerilog developer tools, including a parser, style-linter, formatter and language server
https://chipsalliance.github.io/verible/
Other
1.33k stars 202 forks source link

Parser rejects streaming operators that use the "with" clause #2167

Open fpgauserdude opened 5 months ago

fpgauserdude commented 5 months ago

Describe the bug

Rejects valid syntax.

To Reproduce

byte result[$];
result = {>>{bytes with [start_indx: end_indx]}};

Include any options used.

Actual behavior:

Syntax error "with"

Expected behavior

See LRM 1800-2017 section 11.4.14 Streaming operators (pack/unpack). This is valid syntax that commercial tools have no problem with.