Skip to content

TemplatesLanguageComponentConstructorParams.tokenPattern?

TemplatesLanguageComponentConstructorParams › tokenPattern?

Type: RegExp | undefined

The characters a token name may contain, anchored at the start of the placeholder body.

Defaults to word characters. A dialect whose token names carry more — a comma-separated argument list, say — widens it here.