Fix parsing of BoltFunctionDeclaration in parser.ts

This commit is contained in:
Sam Vervaeck 2020-06-01 20:11:25 +02:00
parent 68942f4488
commit 1659cfa7ec

View file

@ -1212,7 +1212,7 @@ export class Parser {
tokens.get();
switch (target) {
case "Bolt":
body = this.parseFunctionBodyElement(createTokenStream(t3));
body = this.parseFunctionBodyElements(createTokenStream(t3));
break;
default:
body = parseForeignLanguage(target, t3.text, t3.span!.file, t3.span!.start);