Skip to content

Commit 14de582

Browse files
Merge pull request #296 from github/visualizer_changes
Adds match node attr from TSG
2 parents 62edae1 + e56898d commit 14de582

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

tree-sitter-stack-graphs/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ tokio = { version = "1.26", optional = true, features = ["io-std", "rt", "rt-mul
7676
tower-lsp = { version = "0.19", optional = true }
7777
tree-sitter = ">= 0.19"
7878
tree-sitter-config = { version = "0.19", optional = true }
79-
tree-sitter-graph = "0.10.1"
79+
tree-sitter-graph = "0.11"
8080
tree-sitter-loader = "0.20"
8181
walkdir = { version = "2.3", optional = true }
8282

tree-sitter-stack-graphs/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,10 @@ impl<'a> Builder<'a> {
612612
.debug_attributes(
613613
[DEBUG_ATTR_PREFIX, "tsg_location"].concat().as_str().into(),
614614
[DEBUG_ATTR_PREFIX, "tsg_variable"].concat().as_str().into(),
615+
[DEBUG_ATTR_PREFIX, "tsg_match_node"]
616+
.concat()
617+
.as_str()
618+
.into(),
615619
);
616620

617621
// The execute_into() method requires that the reference to the tree matches the lifetime

0 commit comments

Comments
 (0)