Skip to main content

Module content_parser

Module content_parser 

Source
Expand description

Section content parser for GCTF files.

Parses the content of different section types based on their structure.

Functionsยง

build_section
Build a section from parsed content.
parse_attribute
Parse a GCTF attribute from #[name(value)] content string. Returns None if content is empty or invalid.
parse_inline_options
Parse key=value options from section header inline options string.
parse_section_content
Parse section content based on section type.
resolve_attributes
Resolve attributes for a section, applying inheritance rules: