Skip to content
Snippets Groups Projects
Unverified Commit 714ee509 authored by Alexander Rose's avatar Alexander Rose Committed by GitHub
Browse files

Update src/mol-script/language/parser.ts

parent ae1df3c5
No related branches found
No related tags found
No related merge requests found
......@@ -117,9 +117,8 @@ namespace Language {
++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}'.`);
n = nodes[i];
if (n.kind === 'comment') throw new Error('Invalid expression');
args[name] = visitExpr(n);
if (nodes[i].kind === 'comment') throw new Error('Invalid expression');
args[name] = visitExpr(nodes[i);
if (isNaN(+name)) allNumeric = false;
} else {
args[pos++] = visitExpr(n);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment