diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2024-07-07 12:20:39 +0200 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2024-07-07 12:20:39 +0200 |
| commit | 0d4ee28028fb01dfbc5496b5d7056a6c0ac3eeaf (patch) | |
| tree | eff02c74271c5b8c94b23980e4b41bc78778de14 | |
| parent | 4e58d014ebc5c7866131c081aa9d7890eded5865 (diff) | |
Improve comments in signatures.
| -rw-r--r-- | src/odin/printer/visit.odin | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/odin/printer/visit.odin b/src/odin/printer/visit.odin index e6decb9..c408147 100644 --- a/src/odin/printer/visit.odin +++ b/src/odin/printer/visit.odin @@ -2900,6 +2900,8 @@ visit_signature_list :: proc( len(list.list) > 1 || contains_body \ ? cons(document, if_break(",")) \ : document + } else { + document = cons(document, text(",")) } } @@ -2913,6 +2915,9 @@ visit_signature_list :: proc( } } + comment, _ := visit_comments(p, list.end) + document = cons(document, comment) + return document } |