TTMSFNCMemoCustomLanguage Class
A reusable component that defines a complete custom Monaco editor language grammar, including bracket pairs, keyword lists, and the full tokenizer state machine.
API unit family: TMSFNCMemoCustomLanguage
Inherits from: TTMSFNCCustomComponent
Syntax
TTMSFNCMemoCustomLanguage = class(TTMSFNCCustomComponent)
Properties
| Name | Description |
|---|---|
| Brackets | The set of matching bracket pairs (open/close characters) recognised by this language. |
| DefaultToken | Token classification applied to any input that does not match any tokenizer rule; defaults to source when not set. |
| ExtraKeys | Additional named keyword lists or token-class definitions referenced in tokenizer rules using the @name shorthand. |
| IgnoreCase | When True, all pattern matching performed by the tokenizer is case-insensitive. |
| IncludeLF | When True, the tokenizer includes line-feed characters in matched tokens so multi-line rules can span lines. |
| LanguageID | The unique language identifier registered with the editor (e.g. pascal, sql); must match the identifier passed to the editor's language registration call. |
| Tokenizer | The collection of named tokenizer states that together define the language's lexing state machine. |
| Unicode | When True, the tokenizer operates in Unicode mode, enabling correct handling of multi-byte characters in regex patterns. |
Methods
| Name | Description |
|---|---|
| GetLanguageObject | Serialises the complete language grammar as a Monaco-compatible JavaScript object string that can be passed to the editor's language registration API. |