Repository navigation
Conversation
Update the vendored SystemVerilog grammar WASM to gmlarumbe/tree-sitter-systemverilog v0.5.0. - Source: https://github.com/gmlarumbe/tree-sitter-systemverilog/releases/tag/v0.5.0 - Asset: tree-sitter-systemverilog.wasm - SHA256: bdd8246dd326e174ec7904f391e472d9a8d5212b2e3eee9c8ec6f692dbdb0920 Add compatibility regressions for v0.5.0 AST changes: colbymchenry#85 bit-selected port connections remain module instantiations and keep base-signal bindings; colbymchenry#86 part-select ranges remain select siblings with base/index signal refs; colbymchenry#80 static package method calls keep call edges while no-paren members are not method calls. Guard recovered ERROR nodes so malformed syntax does not invent outer-scope signal bindings.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scoped grammar bump + compatibility tests for colbymchenry#1875.
gmlarumbe/tree-sitter-systemverilogv0.5.0 release assettree-sitter-systemverilog.wasm, sha256bdd8246dd326e174ec7904f391e472d9a8d5212b2e3eee9c8ec6f692dbdb0920.colbymchenry#85 bit-selected port connection
Before (v0.4.0):
u1could be parsed asudp_instantiation.After (v0.5.0): parses as
module_instantiation; CodeGraph keepsu1instantiatingfand binds ports to base signalsin_bus,out_bus.colbymchenry#86 part-select range AST
Before (v0.4.0): part-select range nested under
bit_select.After (v0.5.0):
selectchildren are[bit_select, constant_range]; signal refs include base/index signalsa,i,x.colbymchenry#80
::static calls require parensBefore (v0.4.0): no-paren
Class::membercould be parsed as a zero-argmethod_call.After (v0.5.0):
pkg::method()keeps a call edge;pkg::memberhas nomethod_callnode and nopkg::membercall edge.Compatibility note: malformed procedural syntax recovered as module-level
ERRORnodes no longer emits signal bindings from that ERROR region, avoiding invented outer-scope bindings.Validation:
npx tsc --noEmit;npx vitest run __tests__/verilog-*.test.ts __tests__/hdl-*.test.ts(35 files, 240 passed).