Skip to content

PrismTokenObject

Unofficial

Describes a token pattern for Prism grammar definitions.

Import:

import type { PrismTokenObject } from '@obsidian-typings/obsidian-catalyst-latest';

Signature:

export interface PrismTokenObject

Properties

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.