/** * mask.ts — blank out regions without moving anything. * * Every reader in the linter needs the same trick: hide a stretch of input * (a comment, a `` both end the block, `` does not. Case-insensitive: * unlike Svelte's own parser this is a "what should the scanner not look at" mask, * and `` and `` subtrees, bodies and tags alike. */ export const maskScriptAndStyle = (src: string): string => maskRegions(maskRegions(src, SCRIPT_BLOCK), STYLE_BLOCK);