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

Commit a7f6cdf

Browse files
committed
Resolve continue labels.
1 parent 471ed80 commit a7f6cdf

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -518,6 +518,18 @@ attribute node_symbol = node => symbol = (source-text node), source_n
518518
edge @this.after_scope -> @this.before_scope
519519
}
520520

521+
(continue_statement (identifier) @name) @this {
522+
node ref
523+
node ns
524+
525+
attr (ref) node_reference = @name
526+
edge ref -> ns
527+
528+
attr (ns) push_symbol = "%Label"
529+
530+
edge ns -> @this.before_scope
531+
}
532+
521533
(declaration) @decl {}
522534

523535
(do_statement body: (_) @body condition: (_) @cond) @stmt {

0 commit comments

Comments
 (0)