show line where mini notation parse errors happen
This commit is contained in:
parent
5a76bc93b8
commit
ecf837636b
2 changed files with 14 additions and 6 deletions
|
|
@ -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 = [];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue