nph icon indicating copy to clipboard operation
nph copied to clipboard

nph breaks testament, or testament doesn't like nph

Open arkanoid87 opened this issue 1 month ago • 1 comments

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

arkanoid87 avatar Oct 26 '25 18:10 arkanoid87

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.

arnetheduck avatar Oct 31 '25 09:10 arnetheduck