RegionConfig

interface
interface RegionConfig

Configuration for region marker parsing.

PROPERTIES

NAMETYPEDESCRIPTION
endTag?stringToken that closes a region. Default: 'endregion'
fileExtensionMap?Record<string, (string | RegExp)[]>Map of file extension to an array of regex pattern strings. `{token}` is substituted with startTag or endTag at parse time. Each pattern must contain exactly one capturing group `(\w+)` for the region ID. Multiple patterns per extension support multiple comment styles (e.g. line + block). User entries are merged over the built-in DEFAULT_REGION_EXTENSION_MAP (user wins).
startTag?stringToken that opens a region. Default: 'region'