Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit 778b489

Browse files
committed
Connect more dots.
1 parent 41c8079 commit 778b489

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

languages/tree-sitter-stack-graphs-java/src/stack-graphs.tsg

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,9 @@ attribute node_symbol = node => symbol = (source-text node), source_n
498498
edge @block.after_scope -> @last.after_scope
499499
}
500500

501+
(break_statement (identifier) @name) @this {
502+
edge @this.after_scope -> @this.before_scope
503+
}
501504
(break_statement (identifier) @name) @stmt {
502505
node ref
503506
node ns
@@ -508,7 +511,6 @@ attribute node_symbol = node => symbol = (source-text node), source_n
508511
attr (ns) push_symbol = "%Label"
509512

510513
edge ns -> @stmt.before_scope
511-
edge @stmt.after_scope -> @stmt.before_scope
512514
}
513515

514516
(continue_statement) @stmt {

0 commit comments

Comments
 (0)