mirror of
https://github.com/kucherenko/jscpd.git
synced 2026-09-19 08:11:03 +08:00
66a54c3ea7
- Register 'astro' format with .astro extension in src/formats.ts - Add tokenizeAstro() in src/languages/astro.ts: extracts and tokenizes frontmatter (typescript), <script> blocks (js/ts by lang attr), <style> blocks (css/scss/less by lang attr), and template (markup) independently - Dispatch to tokenizeAstro() in createTokenMapBasedOnCode() for format 'astro' - Add 31 tests in __tests__/astro.test.ts covering all extraction scenarios, line offset correctness, CRLF normalization, ReDoS guard, empty frontmatter - Add 6 test fixture files under __tests__/fixtures/astro/ - Update formats.test.ts and tokenize.test.ts with astro coverage entries - Add end-to-end integration fixtures in fixtures/astro/ (component1/2.astro)