Fix punctuation parsing

This commit is contained in:
Sam Vervaeck 2020-02-24 18:35:07 +01:00
parent bcec19ecc8
commit 6921aabf2a
2 changed files with 8 additions and 0 deletions

View file

@ -196,6 +196,11 @@ export class Scanner {
const c1 = this.peekChar();
if (isWhiteSpace(c1)) {
this.getChar()
continue;
}
if (c1 === EOF) {
throw new ScanError(this.file, this.currPos.clone(), EOF)
}

View file

@ -0,0 +1,3 @@
{ foo baz bar }
( foo baz bar )
[ foo baz bar ]