Use source position within templates, now that StringScanner is fixed
This commit is contained in:
parent
a0712af032
commit
eaeb4b7df8
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue