nph
nph copied to clipboard
nph breaks testament, or testament doesn't like nph
nph turns this
discard """
action: "reject"
errormsg: "foo"
file: "bar.nim"
"""
into this:
discard
"""
action: "reject"
errormsg: "foo"
file: "bar.nim"
"""
causing testament to Failure: reNimcCrash
https://nim-lang.org/docs/testament.html
this looks more like a testament issue - semantically, the two styles are equivalent and it's likely that testament has an incomplete parser that supports only a subset of the nim syntax.
separately, I'm not sure which of these two formattings I like better - ie the newline before """ feels a bit useless.