LanguageMapProtocol.extend method
LanguageMapProtocol › extend
Unofficial
Creates a new grammar by extending an existing language definition.Signature:
extend(id: string, redef: Record<string, GrammarValue>): GrammarParameters:
| Parameter | Type | Description |
|---|---|---|
| id | string | The language identifier to extend. |
| redef | Record<string, GrammarValue> | Token definitions to add or override. |
Returns: Grammar — The new grammar.