Skip to content

Commit

Permalink
go/gen: add lil \n to fix output code format
Browse files Browse the repository at this point in the history
  • Loading branch information
clarete committed Nov 28, 2023
1 parent 09e4cbe commit 9e63604
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/gen_go.go
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ func (g *goCodeEmitter) visitDefinitionNode(n *DefinitionNode) {
g.parser.writei(fmt.Sprintf("langlang.NewValueNode(\"%s\", item, langlang.NewSpan(start, p.Location())),\n", n.Name))

g.parser.unindent()
g.parser.writei("\n)\n")
g.parser.writei(")\n")

g.parser.unindent()
g.parser.write("\n}\n")
Expand Down

0 comments on commit 9e63604

Please sign in to comment.