Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
parse @param name correctly
  • Loading branch information
andrewmbenton committed Oct 13, 2023
commit 97b05713d70c0a4cff5461c76687ce7443d56c94
5 changes: 3 additions & 2 deletions internal/metadata/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,9 @@ func parseParamsAndFlags(comments []string) (map[string]string, map[string]bool)
parts := strings.SplitN(cleanLine, " ", 2)
name := parts[0]
switch name {
case "param":
params[name] = parts[1]
case "@param":
paramParts := strings.SplitN(parts[1], " ", 2)
params[paramParts[0]] = paramParts[1]
default:
flags[name] = true
}
Expand Down