Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix first doc comment inside macro yield (#15050)
The following example eats the doc comment: ```cr macro foo {{yield}} end foo do # doc comment def test end end ``` This is because the first line of comment is generated on the same line as the `begin` which is inserted when using `{{yield}}`, like so: ```cr begin # doc comment def test end end ``` Using a newline instead of whitespace after `begin` in macro yield fixes this. --------- Co-authored-by: Johannes Müller <straightshoota@gmail.com> Co-authored-by: Julien Portalier <julien@portalier.com>
- Loading branch information