show line where mini notation parse errors happen

This commit is contained in:
Felix Roos 2023-12-31 15:06:30 +01:00
parent 5a76bc93b8
commit ecf837636b
2 changed files with 14 additions and 6 deletions

View file

@ -15,7 +15,7 @@ export function transpiler(input, options = {}) {
let miniLocations = [];
const collectMiniLocations = (value, node) => {
const leafLocs = getLeafLocations(`"${value}"`, node.start); // stimmt!
const leafLocs = getLeafLocations(`"${value}"`, node.start, input);
miniLocations = miniLocations.concat(leafLocs);
};
let widgets = [];