Closed cardoso closed 10 months ago
@alexcrichton can it take the version as well? The parser accepts it, but I didn't see ui tests for it. If the parser is right, I can improve this and add more tests there.
It can, yeah, and would be good to add tests as well!
Okay, so it seems they're the same:
interface ::= id
| id ':' id '/' id ('@' valid-semver)?
If this is it, then I'll open the PR for the parser once this is merged.
It does seem confusing though since it should refer to worlds, but I'll leave it to you.
Thanks @alexcrichton . I think it reads better now (and uses the same naming as wit-parser).
Thanks!
This seems to be missing from #174 . I just took a rough look at wit-parser and this seems to be what it's doing currently.
cc @Mossaka @alexcrichton