CRLF lines not supported
lbyonder opened this issue · comments
Bug Report
Overview
Windows style line endings give a syntax error.
Expected
Documentation should explain what line endings are supported. Does webassembly itself support CRLF?
Thank you for reporting this. Seems like a straightforward bug in the tokenizer. We don't match Window line endings only \n
so it's invalid syntax. WebAssembly itself isn't opinionated about that type of thing because it's a binary format.
walt/packages/walt-syntax/src/tokens.js
Lines 76 to 102 in 7ca5eb8
Should be straightforward to fix with a better regex for newline
.
Fixed by #154
I'll publish a patched version to npm later today.