Skip to main content
Table of Contents

TTMSFNCMemoCustomLanguageCase Class

A conditional branch inside a tokenizer action: if the Guard regular expression matches, the associated Action is applied.

API unit family: TMSFNCMemoCustomLanguage Inherits from: TCollectionItem

Syntax

GeneratedPascalC++
TTMSFNCMemoCustomLanguageCase = class(TCollectionItem)
class PASCALIMPLEMENTATION TTMSFNCMemoCustomLanguageCase : public System::Classes::TCollectionItem

Properties

Name Description
Action The tokenizer action applied when the guard condition matches.
Guard Regular expression or special string (e.g. @keywords) tested against the matched token to select this branch.

Methods

Name Description
AsJSObjectProperty Serialises this case branch as a key-value JSON property string for inclusion in a Monaco tokenizer action object.