Number of capture groups per pattern per state
Default CSS class for unmatched text
Delimiter classes per state per pattern
End patterns per state (regex that ends the state, null = no end pattern)
Inner (token) classes per state per pattern
Keywords: state → pattern_index → {group_name: regex}
Keyword group → CSS class mapping
Language name
Parts: state → pattern_index → {subgroup: class} | null
Regex patterns per state: state → combined regex (null = no pattern for this state)
State transitions: state → pattern_index → next_state (-1 = no transition)
Substitution flags
Complete language definition for the Text_Highlighter-compatible engine.
Each language definition describes a state machine where: