Skip to content

Commit

Permalink
Make snippets display as literals
Browse files Browse the repository at this point in the history
  • Loading branch information
peachpit-site committed Feb 2, 2025
1 parent 340382b commit 82a673e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/vm/descriptors.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (vm *Vm) toString(v values.Value, flavor descriptionFlavor) string {
buf.WriteByte('(')
var sep string
for _, k := range v.V.(values.Snippet).Data {
fmt.Fprintf(&buf, "%s%s", sep, vm.StringifyValue(k, flavor))
fmt.Fprintf(&buf, "%s%s", sep, vm.StringifyValue(k, LITERAL))
sep = ", "
}
buf.WriteByte(')')
Expand Down Expand Up @@ -180,7 +180,7 @@ func (vm *Vm) toString(v values.Value, flavor descriptionFlavor) string {
buf.WriteString("snippet(")
var sep string
for _, k := range v.V.(values.Snippet).Data {
fmt.Fprintf(&buf, "%s%s", sep, vm.StringifyValue(k, flavor))
fmt.Fprintf(&buf, "%s%s", sep, vm.StringifyValue(k, LITERAL))
sep = ", "
}
buf.WriteByte(')')
Expand Down

0 comments on commit 82a673e

Please sign in to comment.