The language configuration interfaces defines the contract between extensions and various editor features, like automatic bracket insertion, automatic indentation etc.

Fields

@:optionaloptionalwordPattern:Null<RegExp>

The language's word definition. If the language supports Unicode identifiers (e.g. JavaScript), it is preferable to provide a word definition that uses exclusion of known separators. e.g.: A regex that matches anything except known separators (and dot is allowed to occur in a floating point number): /(-?\d.\d\w)|([^`\~!\@#\%\^\&*()-\=+[{]}\|\;\:\'\",.\<\>\/\?\s]+)/g

@:optionaloptionalonEnterRules:Null<Array<OnEnterRule>>

The language's rules to be evaluated when pressing Enter.

@:optionaloptionalindentationRules:Null<IndentationRule>

The language's indentation settings.

@:optionaloptionalcomments:Null<CommentRule>

The language's comment settings.

@:optionaloptionalbrackets:Null<Array<CharacterPair>>

The language's brackets. This configuration implicitly affects pressing Enter around these brackets.

@:optionaloptional__electricCharacterSupport:Null<{docComment:Null<{scope:String, open:String, lineStart:String, close:Null<String>}>, brackets:Null<Any>}>

Deprecated: "Will be replaced by a better API soon."
Deprecated:

Will be replaced by a better API soon.

Deprecated Do not use.

@:optionaloptional__characterPairSupport:Null<{autoClosingPairs:Array<{open:String, notIn:Null<Array<String>>, close:String}>}>

Deprecated: "Use the autoClosingPairs property in the language configuration file instead."
Deprecated:
  • Use the autoClosingPairs property in the language configuration file instead.

Deprecated Do not use.