Skip to main content

Module language_config

Module language_config 

Source
Expand description

Language-specific bracket pairing and indentation rules.

Structs§

AutoClosingPair
An automatic closing pair and the syntax contexts in which insertion is disabled. Empty delimiters are ignored. Strings support delimiters such as /* and */.
BracketPair
A structural pair, used for indentation and splitting Enter between delimiters.
IndentationRules
Language indentation patterns, using Rust’s regex syntax. 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.
LanguageConfig
Declarative language editing rules, independent of editor preferences and parsers.