Skip to content

Metadata grammar

Leon Starr edited this page Jul 23, 2026 · 11 revisions

This grammar excerpt is just for documentation purposes. When in doubt look at the file itself in the code section.

// Metadata
metadata = metadata_header data_item*
metadata_header = "metadata" EOL* // Metadata header
data_item = INDENT item_name SP* (resource_item / text_item) EOL* // Metadata item
item_name = iword (delim word)* // Meta data item starts with initial cap
resource_item = '>' SP* word (delim word)* // Resource is a name
text_item = ':' SP* r'.*' // Field content can be any text

Clone this wiki locally