Skip to content

Commit

Permalink
feat: Add Elixir moduledoc support (#1548)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Lewis <ianmlewis@gmail.com>
  • Loading branch information
ianlewis committed Aug 26, 2024
1 parent 6449e88 commit 9981a36
Show file tree
Hide file tree
Showing 8 changed files with 437 additions and 567 deletions.
96 changes: 48 additions & 48 deletions SUPPORTED_LANGUAGES.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions internal/cmd/genlangdocs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,11 @@ func main() {

for _, l := range langs {
var supported []string
for _, c := range l.config.LineCommentStart {
supported = append(supported, fmt.Sprintf("`%s`", string(c)))
for _, c := range l.config.LineComments {
supported = append(supported, fmt.Sprintf("`%s`", string(c.Start)))
}
if string(l.config.MultilineCommentStart) != "" {
s := fmt.Sprintf("`%s %s`", string(l.config.MultilineCommentStart), string(l.config.MultilineCommentEnd))
for _, c := range l.config.MultilineComments {
s := fmt.Sprintf("`%s %s`", string(c.Start), string(c.End))
supported = append(supported, s)
}

Expand Down
Loading

0 comments on commit 9981a36

Please sign in to comment.