newline after subroutine description

This commit is contained in:
Mark Canlas 2022-12-04 18:26:53 -05:00
parent c7f3b2c607
commit 93ac6e5f13
2 changed files with 3 additions and 2 deletions

View File

@ -17,6 +17,7 @@
labeled:
; This is a subroutine description
lda $00
lda $01 ; instruction comment

View File

@ -33,9 +33,9 @@ object AsmBlock:
List(label + ":") ++ oComment.map(toComment).map(withIndent).toList
val intentParagraphs =
interFlatMap(intents)(List(""), Intent.toLines)
intents.map(Intent.toLines)
headerParagraph ::: intentParagraphs
interFlatMap(headerParagraph :: intentParagraphs)(List(""), identity)
case AnonymousCodeBlock(intents) =>
interFlatMap(intents)(List(""), Intent.toLines)