Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CSSContentSpans ¶
CSSContentSpans returns the CSS text fragments from a document. For CSS files, this is the entire content. For HTML/JS files, these are the extracted CSS regions (style tags, style attributes, css tagged templates). Used by completion to scope brace counting to CSS content only.
func IsCSSSupportedLanguage ¶
IsCSSSupportedLanguage returns true if the language supports CSS extraction
func ParseCSSFromDocument ¶
func ParseCSSFromDocument(content, languageID string) (*css.ParseResult, error)
ParseCSSFromDocument extracts CSS parse results from any supported document type. Dispatches to the appropriate parser based on language ID.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.