Describes a rule to be evaluated when pressing Enter.

Fields

@:optionaloptionalpreviousLineText:Null<RegExp>

This rule will only execute if the text above the current line matches this regular expression.

beforeText:RegExp

This rule will only execute if the text before the cursor matches this regular expression.

@:optionaloptionalafterText:Null<RegExp>

This rule will only execute if the text after the cursor matches this regular expression.

action:EnterAction

The action to execute.