@@ -17,8 +17,10 @@ Block comments
1717----
1818
1919(source_file
20- (block_comment)
21- (block_comment)
20+ (block_comment
21+ comment: (comment))
22+ (block_comment
23+ comment: (comment))
2224 (block_comment
2325 outer: (outer_doc_comment_marker)
2426 doc: (doc_comment))
@@ -51,12 +53,18 @@ Nested block comments
5153----
5254
5355(source_file
54- (block_comment)
55- (line_comment)
56- (block_comment)
57- (line_comment)
58- (block_comment)
59- (line_comment))
56+ (block_comment
57+ (comment))
58+ (line_comment
59+ (comment))
60+ (block_comment
61+ (comment))
62+ (line_comment
63+ (comment))
64+ (block_comment
65+ (comment))
66+ (line_comment
67+ (comment)))
6068
6169============================================
6270Line comments
@@ -71,7 +79,8 @@ Line comments
7179----
7280
7381(source_file
74- (line_comment)
82+ (line_comment
83+ comment: (comment))
7584 (line_comment
7685 outer: (outer_doc_comment_marker)
7786 doc: (doc_comment))
@@ -99,14 +108,16 @@ Line doc comments
99108 (line_comment
100109 inner: (inner_doc_comment_marker)
101110 doc: (doc_comment))
102- (line_comment)
111+ (line_comment
112+ comment: (comment))
103113 (line_comment
104114 outer: (outer_doc_comment_marker)
105115 doc: (doc_comment))
106116 (line_comment
107117 outer: (outer_doc_comment_marker)
108118 doc: (doc_comment))
109- (line_comment))
119+ (line_comment
120+ comment: (comment)))
110121
111122====================================
112123Block doc comments
@@ -128,11 +139,13 @@ Block doc comments
128139 (block_comment
129140 inner: (inner_doc_comment_marker)
130141 doc: (doc_comment))
131- (block_comment)
142+ (block_comment
143+ comment: (comment))
132144 (block_comment
133145 outer: (outer_doc_comment_marker)
134146 doc: (doc_comment))
135- (block_comment))
147+ (block_comment
148+ comment: (comment)))
136149
137150=====================================
138151Nested doc block comments
@@ -145,7 +158,8 @@ Nested doc block comments
145158----
146159
147160(source_file
148- (block_comment)
161+ (block_comment
162+ comment: (comment))
149163 (block_comment
150164 inner: (inner_doc_comment_marker)
151165 doc: (doc_comment))
@@ -178,15 +192,18 @@ let x; // <- immediate item after an empty line doc comment
178192 (doc_comment))
179193 (block_comment
180194 (inner_doc_comment_marker))
181- (line_comment)
195+ (line_comment
196+ (comment))
182197 (line_comment
183198 (outer_doc_comment_marker)
184199 (doc_comment))
185200 (let_declaration
186201 (identifier))
187- (line_comment)
202+ (line_comment
203+ (comment))
188204 (block_comment)
189- (block_comment))
205+ (block_comment
206+ (comment)))
190207
191208================================================================================
192209Line doc comment with no EOL
0 commit comments