Skip to content
Snippets Groups Projects
Commit 1aec37dd authored by Alexander Rose's avatar Alexander Rose
Browse files

fix

parent 3ff2c084
No related branches found
No related tags found
No related merge requests found
...@@ -118,7 +118,7 @@ namespace Language { ...@@ -118,7 +118,7 @@ namespace Language {
while (i < _i && nodes[i].kind === 'comment') { i++; } while (i < _i && nodes[i].kind === 'comment') { i++; }
if (i >= _i) throw new Error(`There must be a value foolowed a named arg ':${name}'.`); if (i >= _i) throw new Error(`There must be a value foolowed a named arg ':${name}'.`);
if (nodes[i].kind === 'comment') throw new Error('Invalid expression'); if (nodes[i].kind === 'comment') throw new Error('Invalid expression');
args[name] = visitExpr(nodes[i]); args[name] = visitExpr(nodes[i] as ASTNode.ExpressionWithoutComment);
if (isNaN(+name)) allNumeric = false; if (isNaN(+name)) allNumeric = false;
} else { } else {
args[pos++] = visitExpr(n); args[pos++] = visitExpr(n);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment