Describes a rule to be evaluated when pressing Enter.

Hierarchy

  • OnEnterRule

Index

Properties

action

action: EnterAction

The action to execute.

Optional afterText

afterText: RegExp

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

beforeText

beforeText: RegExp

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