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

Commit 4d8f086

Browse files
authored
Merge pull request #393 from github/comments-in-export-lists
Comments in export clauses
2 parents e9646f1 + 0e6ef5b commit 4d8f086

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,7 @@ inherit .containing_class_value
409409
node @comment.covalue
410410
node @comment.new_bindings ; for object patterns
411411
edge @comment.after_scope -> @comment.before_scope
412+
node @comment.source ; for export clauses with multiple exports
412413
}
413414

414415
(identifier) @identifier {

languages/tree-sitter-stack-graphs-javascript/test/base_syntax.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
// foo
44

55
export let x = 1;
6+
export {
7+
// x
8+
A
9+
};
610
import "foo";
711
debugger;
812
var x;

0 commit comments

Comments
 (0)