parser

package
v0.1.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2026 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CSSContentSpans

func CSSContentSpans(content, languageID string) []string

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

func IsCSSSupportedLanguage(languageID string) bool

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL