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

PropertyTypeDescription
alias?string | string[]Alias name(s) for the token type.
greedy?booleanWhether this token is greedy.
inside?GrammarNested grammar applied inside the matched token.
lookbehind?booleanWhether to apply lookbehind to the pattern.
patternRegExpThe regex pattern to match.