line count now includes quoted lines

This commit is contained in:
overflowerror 2022-04-07 21:39:48 +02:00
parent ee50ccdbc5
commit 97b4860961

View file

@ -237,7 +237,7 @@
}
}
return astRoot;
return [astRoot, line];
}
function parseCommands(content) {
@ -330,7 +330,8 @@
}
const end = findSymbolInScope(content, line, '"', i + 1, length);
const ast = doubleQuoteToAst(content.substring(i + 1, end), line);
const [ast, _line] = doubleQuoteToAst(content.substring(i + 1, end), line);
line = _line;
value.add(ast);
@ -383,7 +384,8 @@
}
const end = findSymbolInScope(content, line, '"', i + 1, length);
const ast = doubleQuoteToAst(content.substring(i + 1, end), line);
const [ast, _line] = doubleQuoteToAst(content.substring(i + 1, end), line);
line = _line;
value.add(ast);