PrismTokenObject
Unofficial
Describes a token pattern for Prism grammar definitions.
Import:
import type { PrismTokenObject } from '@obsidian-typings/obsidian-public-latest';Signature:
export interface PrismTokenObjectProperties
| Property | Type | Description | |
|---|---|---|---|
| alias? | string | string[] | Alias name(s) for the token type. | |
| greedy? | boolean | Whether this token is greedy. | |
| inside? | Grammar | Nested grammar applied inside the matched token. | |
| lookbehind? | boolean | Whether to apply lookbehind to the pattern. | |
| pattern | RegExp | The regex pattern to match. |