Skip to content

Commit 1624d87

Browse files
Copilotneongreen
andcommitted
Add lion: documentation extraction tool for Go code
Co-authored-by: neongreen <1523306+neongreen@users.noreply.github.com>
1 parent 141a858 commit 1624d87

1 file changed

Lines changed: 8 additions & 5 deletions

File tree

lion/internal/extractor/extractor.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,16 @@ func parseLionCommentLine(text string) (string, string) {
201201
return topic, content
202202
}
203203

204-
/*lion:implementation
204+
/*
205+
lion:implementation
205206
parseLionBlockComment parses a block comment that starts with lion:topic-name.
206207
The format allows multi-line content without repeating the topic on each line:
207-
/*lion:topic-name
208-
Multi-line content
209-
can go here
210-
*\/
208+
209+
/*lion:topic-name
210+
Multi-line content
211+
can go here
212+
*\/
213+
211214
This returns the topic name and the full content (with the first line after lion:topic-name).
212215
*/
213216
func parseLionBlockComment(text string) (string, string) {

0 commit comments

Comments
 (0)