UNPKG

@tanstack/highlight

Version:

Tiny class-based syntax highlighting for documentation.

21 lines (20 loc) • 718 B
import type { Pattern } from './patterns.js'; export declare const cComments: RegExp; export declare const quotedStrings: RegExp; export declare const doubleStrings: RegExp; export declare function simpleLanguage<const Name extends string>(options: { name: Name; aliases?: ReadonlyArray<string>; comments: RegExp; strings: RegExp; keywords?: string; literals?: string; types?: string; insensitive?: boolean; wordCharacters?: string; nestedComments?: ReadonlyArray<readonly [string, string]>; beforeWords?: ReadonlyArray<Pattern>; rules?: ReadonlyArray<Pattern>; numberSuffix?: string; numbers?: RegExp | false; }): import("../core.js").LanguageDefinition<Name>;