Skip to main content
Table of Contents

TTMSFNCMemoCustomLanguageKey Class

A named keyword or token-class definition used in a custom language; associates a name with a list of literal values or a regex pattern so rules can reference it with the @name syntax.

API unit family: TMSFNCMemoCustomLanguage Inherits from: TCollectionItem

Syntax

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

Properties

Name Description
Name The unique name of this key, referenced in tokenizer rules with the @name syntax (e.g. @keywords).
ValueList List of literal string values associated with this key; each entry is matched exactly (e.g. a keyword list).
ValueRegex Regular expression pattern used as the value of this key; use either ValueRegex or ValueList, not both.

Methods

Name Description
AsJSObjectProperty Serialises this key definition as a named JSON property for inclusion in the Monaco language definition object.

Used by