Fix punctuation parsing
This commit is contained in:
parent
bcec19ecc8
commit
6921aabf2a
2 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
3
test/001-punct-depth-1.bolt
Normal file
3
test/001-punct-depth-1.bolt
Normal file
|
@ -0,0 +1,3 @@
|
|||
{ foo baz bar }
|
||||
( foo baz bar )
|
||||
[ foo baz bar ]
|
Loading…
Reference in a new issue