The auto-outdentation rules
The unique identifier for the syntax highlighting rules (ensure it doesn't conflict with other syntax highlighting rules, such as java or python)
The indentation rules
The start of a line comment
The outdentation rules
The regular expressions which have to precede a quote for pairing to occur
OptionalsnippetThe unique identifier for the snippet file associated with the syntax highlighting rules
The
SyntaxHighlightDatainterface defines the structure of the syntax highlighting information that the runner plugin sends to the web plugin.This data includes rules for tokenizing code, folding rules for code blocks, and other information necessary for the web plugin to perform syntax highlighting in the editor.\
Right now, the
SyntaxHighlightDatauses functions from other pre-existing Ace Editor modes (thehookFromproperties) to determine how to perform syntax highlighting, folding, indentation, and outdenting.This design allows the plugin to use existing Ace Editor modes, at the cost of some flexibility. If more flexibility is needed in the future, it should be extended.