diff options
Diffstat (limited to 'pkg/lang/vm/text/compiler.go')
| -rw-r--r-- | pkg/lang/vm/text/compiler.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkg/lang/vm/text/compiler.go b/pkg/lang/vm/text/compiler.go index 68889eb..28bc9a7 100644 --- a/pkg/lang/vm/text/compiler.go +++ b/pkg/lang/vm/text/compiler.go @@ -47,11 +47,9 @@ func (cpl *Compiler) Compile() (code.Code, error) { cpl.codePos += len(line) + builder.StartLine(cpl.src.Loc().Row - 1) builder.AppendRaw(line) - - if len(line) > 0 { - builder.AppendLine(cpl.src.Loc().Row - 1) - } + builder.EndLine() } if err := cpl.linkLabels(&builder); err != nil { |
