package languages import ( "regexp" "strings" "github.com/zzet/gortex/internal/graph" "github.com/zzet/gortex/internal/parser" ) // astroFrontmatterRe matches the leading `--- ... ---` code fence of an Astro // component. Group 1 is the frontmatter body, which is always TypeScript. var astroFrontmatterRe = regexp.MustCompile(`(?s)\A\s*---[^\n]*\r?\n(.*?)\r?\n[ \t]*---`) // AstroExtractor extracts Astro components: a file node plus one always-exported // component node, the leading `--- ... ---` frontmatter delegated to the // TypeScript extractor, and any client-side