Use source position within templates, now that StringScanner is fixed

This commit is contained in:
Tony Garnock-Jones 2021-01-18 15:32:51 +01:00
parent a0712af032
commit eaeb4b7df8
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ const substPat = M.scope((o: { pos: Pos }) =>
export type Substitution = Items | string;
function toItems(s: Substitution, pos: Pos): Items {
return typeof s === 'string' ? laxRead(s) : s;
return typeof s === 'string' ? laxRead(s, { start: pos }) : s;
}
export class Templates {