Expand description
Language-specific bracket pairing and indentation rules.
Structs§
- Auto
Closing Pair - An automatic closing pair and the syntax contexts in which insertion is disabled.
Empty delimiters are ignored. Strings support delimiters such as
/*and*/. - Bracket
Pair - A structural pair, used for indentation and splitting Enter between delimiters.
- Indentation
Rules - Language indentation patterns, using Rust’s
regexsyntax. Patterns are compiled by the caller, so invalid expressions are reported at setup. Applied on Enter: increase matches text before the caret; decrease matches text after it. This does not reformat existing lines or indentation on paste. - Language
Config - Declarative language editing rules, independent of editor preferences and parsers.