SYMBOL INDEX (582 symbols across 184 files) FILE: bench/bundle-test/index-lite.ts function highlight (line 16) | async function highlight(code: string): Promise { FILE: bench/bundle-test/index-wasm.ts function highlight (line 16) | async function highlight(code: string): Promise { FILE: bench/engines/engines.bench.ts constant RANGE (line 13) | const RANGE = [0, 20] FILE: docs/.vitepress/config.ts constant RE_SHIKIJS_CORE (line 14) | const RE_SHIKIJS_CORE = /_shikijs_core\w*\./g constant RE_THEME_META (line 15) | const RE_THEME_META = /\btheme:([\w,-]+)\b/ constant RE_DECORATIONS_META (line 16) | const RE_DECORATIONS_META = /^\/\/ @decorations:(.*)\n/ constant GUIDES (line 18) | const GUIDES = [ constant REFERENCES (line 37) | const REFERENCES = [ constant INTEGRATIONS (line 43) | const INTEGRATIONS = [ constant BLOGS (line 59) | const BLOGS: DefaultTheme.NavItemWithLink[] = [ constant VERSIONS (line 66) | const VERSIONS: (DefaultTheme.NavItemWithLink | DefaultTheme.NavItemChil... method processHoverInfo (line 83) | processHoverInfo(info) { method shikiSetup (line 99) | async shikiSetup(shiki) { method preprocess (line 110) | preprocess(code, options) { method preprocess (line 141) | preprocess(code, options) { FILE: docs/.vitepress/store/playground.ts constant RE_IMPORT_FROM (line 10) | const RE_IMPORT_FROM = /\n.*?from.*$/i function randomize (line 25) | function randomize(): void { function fetchSample (line 40) | function fetchSample(id: string): Promise { function run (line 80) | function run(): void { FILE: docs/.vitepress/theme/index.ts method enhanceApp (line 20) | enhanceApp({ app }: EnhanceAppContext) { method Layout (line 24) | Layout() { FILE: docs/components.d.ts type GlobalComponents (line 13) | interface GlobalComponents { FILE: packages/cli/src/cli.ts function isUrl (line 9) | function isUrl(path: string): boolean { function getExtFromUrl (line 13) | function getExtFromUrl(url: string): string { function readSource (line 23) | async function readSource(path: string): Promise<{ content: string, ext:... function run (line 40) | async function run( FILE: packages/cli/src/code-to-ansi.ts function codeToANSI (line 7) | async function codeToANSI(code: string, lang: BundledLanguage, theme: Bu... FILE: packages/cli/src/colors.ts constant RE_HASH (line 1) | const RE_HASH = /#/ function normalizeHex (line 3) | function normalizeHex(hex: string): string { function hexToRgba (line 14) | function hexToRgba(hex: string): { r: number, g: number, b: number, a: n... function RgbToHex (line 23) | function RgbToHex(r: number, g: number, b: number): string { function hexApplyAlpha (line 32) | function hexApplyAlpha(hex: string, type: 'dark' | 'light' = 'dark'): st... FILE: packages/codegen/src/cli.ts constant RE_TYPESCRIPT_EXT (line 6) | const RE_TYPESCRIPT_EXT = /\.[cm]?ts$/i FILE: packages/codegen/src/index.ts type ShikiCodegenOptions (line 5) | interface ShikiCodegenOptions { type ShikiCodegenResult (line 54) | interface ShikiCodegenResult { function codegen (line 58) | async function codegen(options: ShikiCodegenOptions): Promise FILE: packages/codegen/test/__snapshots__/basic-precompiled.ts type BundledLanguage (line 10) | type BundledLanguage = type BundledTheme (line 20) | type BundledTheme = 'nord' | 'vitesse-dark' type Highlighter (line 21) | type Highlighter = HighlighterGeneric FILE: packages/colorized-brackets/scripts/prepare.ts function main (line 4) | async function main() { FILE: packages/colorized-brackets/src/colorizeBracketTokens.ts function colorizeBracketTokens (line 7) | function colorizeBracketTokens( function assignColorToToken (line 91) | function assignColorToToken( function isSingleTheme (line 134) | function isSingleTheme( constant DEFAULT_BRACKETS_COLORS (line 140) | const DEFAULT_BRACKETS_COLORS = [ function getColor (line 147) | function getColor( function getThemeColors (line 166) | function getThemeColors(themeName: string, themes: Record method Add (line 5) | public void Add(T input) { } FILE: packages/colorized-brackets/test/fixtures/java/generic.java class Box (line 1) | public class Box { method set (line 6) | public void set(T t) { this.t = t; } method get (line 8) | public T get() { return t; } FILE: packages/colorized-brackets/test/fixtures/python/basic.py function feeder (line 3) | def feeder(get_next_item: Callable[[], str]) -> None: function async_query (line 7) | def async_query(on_success: Callable[[int], None], function on_update (line 13) | async def on_update(value: str) -> None: FILE: packages/colorized-brackets/test/fixtures/rust/generic.rs function largest (line 1) | fn largest(list: &[T]) -> &T { FILE: packages/colorized-brackets/test/fixtures/rust/turbofish.rs function main (line 4) | fn main() { FILE: packages/colorized-brackets/test/fixtures/ts/generic.ts function first (line 1) | function first(array: T[]): T | undefined { FILE: packages/colorized-brackets/test/fixtures/ts/jsdoc.ts function reverse (line 11) | function reverse(strings: string[]) { FILE: packages/colorized-brackets/test/fixtures/tsx/basic.tsx function Hello (line 1) | function Hello({ name }: { name: string }) { FILE: packages/colorized-brackets/test/utils.ts constant RE_IMPLICIT_INDEX (line 3) | const RE_IMPLICIT_INDEX = /[RYPB]/g constant RE_EXPLICIT_INDEX (line 4) | const RE_EXPLICIT_INDEX = /(\d+)(?:-(\d+))?=([RYPB])/g constant RE_SPAN_COLOR (line 5) | const RE_SPAN_COLOR type ColoredBracket (line 9) | interface ColoredBracket { function parseExpectedBrackets (line 14) | function parseExpectedBrackets(content: string): ColoredBracket[] { function parseActualBrackets (line 41) | function parseActualBrackets(html: string): ColoredBracket[] { function prettifyBrackets (line 55) | function prettifyBrackets( function getColoredBracketTerminalOutput (line 66) | function getColoredBracketTerminalOutput( FILE: packages/core/src/constructors/bundle-factory.ts function createBundledHighlighter (line 53) | function createBundledHighlighter { function makeSingletonHighlighter (line 175) | function makeSingletonHighlighter( type CreateSingletonShorthandsOptions (line 209) | interface CreateSingletonShorthandsOptions( FILE: packages/core/src/constructors/highlighter.ts function createHighlighterCore (line 15) | async function createHighlighterCore(options: HighlighterCoreOptions... function makeSingletonHighlighterCore (line 57) | function makeSingletonHighlighterCore( FILE: packages/core/src/highlight/_get-transformers.ts function getTransformers (line 8) | function getTransformers(options: TransformerOptions): ShikiTransformer[] { function sortTransformersByEnforcement (line 18) | function sortTransformersByEnforcement(transformers: ShikiTransformer[]): { FILE: packages/core/src/highlight/code-to-hast.ts constant RE_WHITESPACE_ONLY (line 23) | const RE_WHITESPACE_ONLY = /^\s+$/ constant RE_LEADING_TRAILING_WHITESPACE (line 25) | const RE_LEADING_TRAILING_WHITESPACE = /^(\s*)(.*?)(\s*)$/ function codeToHast (line 27) | function codeToHast( function tokensToHast (line 92) | function tokensToHast( function mergeWhitespaceTokens (line 298) | function mergeWhitespaceTokens(tokens: ThemedToken[][]): ThemedToken[][] { function splitWhitespaceTokens (line 344) | function splitWhitespaceTokens(tokens: ThemedToken[][]): ThemedToken[][] { function mergeAdjacentStyledTokens (line 378) | function mergeAdjacentStyledTokens(tokens: ThemedToken[][]): ThemedToken... FILE: packages/core/src/highlight/code-to-html.ts function codeToHtml (line 18) | function codeToHtml( FILE: packages/core/src/highlight/code-to-tokens-ansi.ts constant RE_HEX_COLOR (line 12) | const RE_HEX_COLOR = /#([0-9a-f]{3,8})/i constant RE_CSS_VAR_ANSI (line 13) | const RE_CSS_VAR_ANSI = /var\((--[\w-]+-ansi-[\w-]+)\)/ function tokenizeAnsiWithTheme (line 39) | function tokenizeAnsiWithTheme( function dimColor (line 105) | function dimColor(color: string): string { FILE: packages/core/src/highlight/code-to-tokens-base.ts function codeToTokensBase (line 12) | function codeToTokensBase( FILE: packages/core/src/highlight/code-to-tokens.ts function codeToTokens (line 13) | function codeToTokens( function mapThemeColors (line 98) | function mapThemeColors( FILE: packages/core/src/theme-css-variables.ts type CssVariablesThemeOptions (line 3) | interface CssVariablesThemeOptions { function createCssVariablesTheme (line 38) | function createCssVariablesTheme(options: CssVariablesThemeOptions = {})... FILE: packages/core/src/transformer-decorations.ts type TransformerDecorationsInternalContext (line 15) | interface TransformerDecorationsInternalContext { function transformerDecorations (line 24) | function transformerDecorations(): ShikiTransformer { function verifyIntersections (line 195) | function verifyIntersections(items: ResolvedDecorationItem[]): void { function stringify (line 222) | function stringify(el: ElementContent): string { FILE: packages/core/src/utils/constants.ts constant DEFAULT_COLOR_LIGHT_DARK (line 1) | const DEFAULT_COLOR_LIGHT_DARK = 'light-dark()' constant COLOR_KEYS (line 2) | const COLOR_KEYS = ['color', 'background-color'] FILE: packages/core/src/utils/hast.ts constant RE_WHITESPACE (line 3) | const RE_WHITESPACE = /\s+/g function addClassToHast (line 10) | function addClassToHast(node: Element, className: string | string[]): El... FILE: packages/core/src/utils/strings.ts constant RE_LANG_ATTR (line 4) | const RE_LANG_ATTR = /:?lang=["']([^"']+)["']/g constant RE_CODE_FENCE (line 5) | const RE_CODE_FENCE = /(?:```|~~~)([\w-]+)/g constant RE_LATEX_BEGIN (line 6) | const RE_LATEX_BEGIN = /\\begin\{([\w-]+)\}/g constant RE_SCRIPT_LANG (line 7) | const RE_SCRIPT_LANG = / { function stringifyTokenStyle (line 150) | function stringifyTokenStyle(token: string | Record): st... FILE: packages/core/test/transformers.test.ts method tokens (line 22) | tokens(tokens) { FILE: packages/engine-javascript/src/engine-compile.ts type JavaScriptRegexEngineOptions (line 7) | interface JavaScriptRegexEngineOptions extends JavaScriptRegexScannerOpt... function defaultJavaScriptRegexConstructor (line 28) | function defaultJavaScriptRegexConstructor(pattern: string, options?: To... function createJavaScriptRegexEngine (line 64) | function createJavaScriptRegexEngine(options: JavaScriptRegexEngineOptio... FILE: packages/engine-javascript/src/engine-raw.ts function createJavaScriptRawEngine (line 12) | function createJavaScriptRawEngine(): RegexEngine { FILE: packages/engine-javascript/src/scanner.ts constant MAX (line 7) | const MAX = 4294967295 type JavaScriptRegexScannerOptions (line 9) | interface JavaScriptRegexScannerOptions { class JavaScriptScanner (line 30) | class JavaScriptScanner implements PatternScanner { method constructor (line 33) | constructor( method findNextMatchSync (line 76) | findNextMatchSync(string: string | RegexEngineString, startPosition: n... FILE: packages/engine-javascript/test/compare.test.ts function createEngineWrapper (line 11) | function createEngineWrapper(engine: RegexEngine): RegexEngine & { execu... type Cases (line 38) | interface Cases { FILE: packages/engine-javascript/test/types.ts type Execution (line 3) | interface Execution { FILE: packages/engine-oniguruma/rollup.config.mjs constant RE_SRC_DIR (line 10) | const RE_SRC_DIR = /src[\\/]/ constant RE_CIRCULAR_EMPTY (line 11) | const RE_CIRCULAR_EMPTY = /Circular|an empty chunk/ method buildEnd (line 64) | async buildEnd() { function wasmPlugin (line 80) | function wasmPlugin() { FILE: packages/engine-oniguruma/src/index.ts function setDefaultWasmLoader (line 13) | function setDefaultWasmLoader(_loader: LoadWasmOptions): void { function getDefaultWasmLoader (line 20) | function getDefaultWasmLoader(): LoadWasmOptions | undefined { function createOnigurumaEngine (line 24) | async function createOnigurumaEngine(options?: LoadWasmOptions | null): ... FILE: packages/engine-oniguruma/src/oniguruma/index.ts type Instantiator (line 19) | type Instantiator = (importObject: Record { function _makeArrayBufferLoader (line 455) | function _makeArrayBufferLoader(data: ArrayBufferView | ArrayBuffer | We... function _makeResponseStreamingLoader (line 458) | function _makeResponseStreamingLoader(data: Response): WebAssemblyInstan... function _makeResponseNonStreamingLoader (line 461) | function _makeResponseNonStreamingLoader(data: Response): WebAssemblyIns... FILE: packages/engine-oniguruma/src/oniguruma/onig.ts function getHeapMax (line 3) | function getHeapMax(): number { function _emscripten_get_now (line 7) | function _emscripten_get_now(): number { function main (line 13) | async function main(init: Instantiator): Promise { FILE: packages/langs-precompiled/scripts/langs.ts constant RE_NON_WORD (line 6) | const RE_NON_WORD = /\W/g constant RE_MULTIPLE_NEWLINES (line 7) | const RE_MULTIPLE_NEWLINES = /\n{2,}/g constant RE_VALID_FILENAME (line 8) | const RE_VALID_FILENAME = /^[\w-]+$/ constant RE_VALID_IDENTIFIER (line 9) | const RE_VALID_IDENTIFIER = /^[a-z_$][\w$]*$/i function prepareLangs (line 11) | async function prepareLangs() { function isInvalidFilename (line 113) | function isInvalidFilename(filename: string) { function toJsLiteral (line 117) | function toJsLiteral(value: any, seen = new Set()): string { function safeKey (line 184) | function safeKey(key: string) { FILE: packages/langs-precompiled/scripts/precompile.ts function precompileGrammar (line 5) | function precompileGrammar(grammar: LanguageRegistration): LanguageRegis... FILE: packages/langs/scripts/langs.ts constant RE_NON_WORD (line 6) | const RE_NON_WORD = /\W/g constant RE_MULTIPLE_NEWLINES (line 7) | const RE_MULTIPLE_NEWLINES = /\n{2,}/g constant RE_IMPORT_PLACEHOLDER (line 8) | const RE_IMPORT_PLACEHOLDER = /"__|__"/g constant RE_DOUBLE_QUOTE (line 9) | const RE_DOUBLE_QUOTE = /"/g constant RE_VALID_FILENAME (line 10) | const RE_VALID_FILENAME = /^[\w-]+$/ constant LANGS_LAZY_EMBEDDED_ALL (line 15) | const LANGS_LAZY_EMBEDDED_ALL = { constant LANGS_LAZY_EMBEDDED_PARTIAL (line 27) | const LANGS_LAZY_EMBEDDED_PARTIAL = { function loadLangs (line 75) | async function loadLangs() { function prepareLangs (line 121) | async function prepareLangs() { function isInvalidFilename (line 282) | function isInvalidFilename(filename: string) { FILE: packages/markdown-exit/src/common.ts type MarkdownExitShikiExtraOptions (line 10) | interface MarkdownExitShikiExtraOptions { type MarkdownExitShikiSetupOptions (line 44) | type MarkdownExitShikiSetupOptions FILE: packages/markdown-exit/src/core.ts function setupMarkdownExit (line 11) | function setupMarkdownExit( function fromHighlighter (line 68) | function fromHighlighter( FILE: packages/markdown-exit/src/index.ts function setupMarkdownExitAsync (line 9) | function setupMarkdownExitAsync( function fromAsyncCodeToHtml (line 68) | function fromAsyncCodeToHtml( function markdownExitShiki (line 77) | function markdownExitShiki(options: MarkdownExitShikiSetupOptions) { FILE: packages/markdown-it/src/async.ts function setupMarkdownWithCodeToHtml (line 7) | function setupMarkdownWithCodeToHtml( function fromAsyncCodeToHtml (line 65) | function fromAsyncCodeToHtml( FILE: packages/markdown-it/src/common.ts type MarkdownItShikiExtraOptions (line 10) | interface MarkdownItShikiExtraOptions { type MarkdownItShikiSetupOptions (line 44) | type MarkdownItShikiSetupOptions FILE: packages/markdown-it/src/core.ts function setupMarkdownIt (line 11) | function setupMarkdownIt( function fromHighlighter (line 68) | function fromHighlighter( FILE: packages/markdown-it/src/index.ts type MarkdownItShikiOptions (line 9) | type MarkdownItShikiOptions = MarkdownItShikiSetupOptions & { function markdownItShiki (line 24) | async function markdownItShiki(options: MarkdownItShikiOptions) { FILE: packages/monaco/src/index.ts constant RE_FONT_STYLE_SPLIT (line 8) | const RE_FONT_STYLE_SPLIT = /[\s,]+/ type MonacoTheme (line 10) | interface MonacoTheme extends monacoNs.editor.IStandaloneThemeData { } type ShikiToMonacoOptions (line 12) | interface ShikiToMonacoOptions { function textmateThemeToMonacoTheme (line 27) | function textmateThemeToMonacoTheme(theme: ThemeRegistrationResolved): M... function shikiToMonaco (line 67) | function shikiToMonaco( function normalizeFontStyleBits (line 177) | function normalizeFontStyleBits(fontStyle: FontStyle): string { constant VALID_FONT_STYLES (line 195) | const VALID_FONT_STYLES = [ constant VALID_FONT_ALIASES (line 202) | const VALID_FONT_ALIASES: Record): Sh... FILE: packages/primitive/src/highlight/code-to-tokens-base.ts constant RE_COMMA (line 24) | const RE_COMMA = /,/ constant RE_SPACE (line 25) | const RE_SPACE = / / function codeToTokensBase (line 30) | function codeToTokensBase( function getLastGrammarState (line 69) | function getLastGrammarState(...args: any[]): GrammarState | undefined { type ThemeSettingsSelectors (line 97) | interface ThemeSettingsSelectors { function tokenizeWithTheme (line 102) | function tokenizeWithTheme( function _tokenizeWithTheme (line 122) | function _tokenizeWithTheme( function explainThemeScopesNameOnly (line 276) | function explainThemeScopesNameOnly( function explainThemeScopesFull (line 282) | function explainThemeScopesFull( function matchesOne (line 297) | function matchesOne(selector: string, scope: string): boolean { function matches (line 302) | function matches( function explainThemeScope (line 324) | function explainThemeScope( FILE: packages/primitive/src/highlight/code-to-tokens-themes.ts function codeToTokensWithThemes (line 13) | function codeToTokensWithThemes( function alignThemesTokenization (line 97) | function alignThemesTokenization(...themes: ThemedToken[][][]): ThemedTo... FILE: packages/primitive/src/textmate/getters-resolve.ts function resolveLangs (line 16) | async function resolveLangs(langs: (LanguageInput | SpecialLanguage)[]):... function resolveThemes (line 24) | async function resolveThemes(themes: (ThemeInput | SpecialTheme)[]): Pro... FILE: packages/primitive/src/textmate/grammar-state.ts function setLastGrammarStateToMap (line 10) | function setLastGrammarStateToMap( function getLastGrammarStateFromMap (line 17) | function getLastGrammarStateFromMap( class GrammarState (line 28) | class GrammarState implements GrammarStateInterface { method themes (line 35) | get themes(): string[] { method theme (line 39) | get theme(): string { method _stack (line 43) | private get _stack(): StateStack { method initial (line 50) | static initial(lang: string, themes: string | string[]): GrammarState { method constructor (line 66) | constructor(...args: any[]) { method getInternalStack (line 83) | getInternalStack(theme = this.theme): StateStack | undefined { method getScopes (line 87) | getScopes(theme: string = this.theme): string[] { method toJSON (line 91) | toJSON(): { function getScopes (line 106) | function getScopes(stack: StateStackImpl): string[] { function getGrammarStack (line 125) | function getGrammarStack( FILE: packages/primitive/src/textmate/normalize-theme.ts constant VSCODE_FALLBACK_EDITOR_FG (line 6) | const VSCODE_FALLBACK_EDITOR_FG = { light: '#333333', dark: '#bbbbbb' } constant VSCODE_FALLBACK_EDITOR_BG (line 7) | const VSCODE_FALLBACK_EDITOR_BG = { light: '#fffffe', dark: '#1e1e1e' } constant RESOLVED_KEY (line 9) | const RESOLVED_KEY = '__shiki_resolved' function normalizeTheme (line 14) | function normalizeTheme(rawTheme: ThemeRegistrationAny): ThemeRegistrati... FILE: packages/primitive/src/textmate/registry.ts class Registry (line 14) | class Registry extends TextMateRegistry { method constructor (line 24) | constructor( method getTheme (line 36) | public getTheme(theme: ThemeRegistrationAny | string): ThemeRegistrati... method loadTheme (line 43) | public loadTheme(theme: ThemeRegistrationAny): ThemeRegistrationResolv... method getLoadedThemes (line 53) | public getLoadedThemes(): string[] { method setTheme (line 64) | public override setTheme(theme: IRawTheme): void { method getGrammar (line 74) | public getGrammar(name: string): Grammar | undefined { method loadLanguage (line 79) | public loadLanguage(lang: LanguageRegistration): void { method dispose (line 120) | public override dispose(): void { method loadLanguages (line 129) | public loadLanguages(langs: LanguageRegistration[]): void { method getLoadedLanguages (line 155) | public getLoadedLanguages(): string[] { method resolveEmbeddedLanguages (line 164) | private resolveEmbeddedLanguages(lang: LanguageRegistration): void { FILE: packages/primitive/src/textmate/resolver.ts class Resolver (line 4) | class Resolver implements RegistryOptions { method constructor (line 11) | constructor(engine: RegexEngine, langs: LanguageRegistration[]) { method onigLib (line 19) | public get onigLib(): IOnigLib { method getLangRegistration (line 23) | public getLangRegistration(langIdOrAlias: string): LanguageRegistration { method loadGrammar (line 27) | public loadGrammar(scopeName: string): any { method addLanguage (line 31) | public addLanguage(l: LanguageRegistration): void { method getInjections (line 48) | public getInjections(scopeName: string): string[] | undefined { FILE: packages/primitive/src/utils/alias.ts function resolveLangAlias (line 3) | function resolveLangAlias(name: string, alias?: Record):... FILE: packages/primitive/src/utils/colors.ts function resolveColorReplacements (line 3) | function resolveColorReplacements( function applyColorReplacements (line 20) | function applyColorReplacements(color?: string, replacements?: Record(x: MaybeArray): T[] { function normalizeGetter (line 17) | async function normalizeGetter(p: MaybeGetter): Promise { function isPlainLang (line 26) | function isPlainLang(lang: string | null | undefined): lang is PlainText... function isSpecialLang (line 35) | function isSpecialLang(lang: any): lang is SpecialLanguage { function isNoneTheme (line 44) | function isNoneTheme(theme: string | ThemeInput | null | undefined): the... function isSpecialTheme (line 53) | function isSpecialTheme(theme: string | ThemeInput | null | undefined): ... FILE: packages/primitive/src/utils/strings.ts constant RE_NEWLINE (line 17) | const RE_NEWLINE = /(\r?\n)/g function splitLines (line 19) | function splitLines(code: string, preserveEnding = false): [string, numb... FILE: packages/primitive/test/registry.test.ts constant RE_MISSING_LANG_ERROR (line 5) | const RE_MISSING_LANG_ERROR = /Missing languages `missing-lang`, require... FILE: packages/rehype/src/core.ts function rehypeShikiFromHighlighter (line 17) | function rehypeShikiFromHighlighter( FILE: packages/rehype/src/handlers.ts constant RE_TAILING_CURLY_COLON (line 5) | const RE_TAILING_CURLY_COLON = /(.+)\{:([\w-]+)\}$/ type Truthy (line 7) | type Truthy = T extends false | '' | 0 | null | undefined ? never : T type RehypeShikiHandler (line 9) | type RehypeShikiHandler = ( FILE: packages/rehype/src/index.ts type RehypeShikiOptions (line 11) | type RehypeShikiOptions = RehypeShikiCoreOptions FILE: packages/rehype/src/types.ts type MapLike (line 10) | interface MapLike { type RehypeShikiExtraOptions (line 15) | interface RehypeShikiExtraOptions { type RehypeShikiCoreOptions (line 86) | type RehypeShikiCoreOptions FILE: packages/rehype/test/index.test.ts constant RE_NORMAL_KEY (line 10) | const RE_NORMAL_KEY = /^[A-Z0-9]+$/i constant RE_LINE_CLASS (line 11) | const RE_LINE_CLASS = /class="line"/g FILE: packages/shiki/src/bundle-full.ts type Highlighter (line 14) | type Highlighter = HighlighterGeneric FILE: packages/shiki/src/bundle-web.ts type Highlighter (line 14) | type Highlighter = HighlighterGeneric FILE: packages/shiki/src/langs-bundle-full.ts type BundledLanguage (line 1431) | type BundledLanguage = FILE: packages/shiki/src/langs-bundle-web.ts type BundledLanguage (line 343) | type BundledLanguage = FILE: packages/shiki/src/themes.ts type BundledTheme (line 397) | type BundledTheme = FILE: packages/shiki/src/types.ts type BuiltinLanguage (line 9) | type BuiltinLanguage = BundledLanguage type BuiltinTheme (line 10) | type BuiltinTheme = BundledTheme FILE: packages/shiki/test/cf.ts method fetch (line 12) | async fetch() { FILE: packages/shiki/test/color-replacement.test.ts constant RE_GT (line 5) | const RE_GT = />/g FILE: packages/shiki/test/hast.test.ts method code (line 54) | code(node) { method span (line 57) | span(node, line, col, parent) { FILE: packages/shiki/test/shorthands.test.ts constant RE_INVALID_LANG_ERROR (line 4) | const RE_INVALID_LANG_ERROR = /Language `invalid` is not included in thi... FILE: packages/shiki/test/themes.test.ts function stringifyTokens (line 6) | function stringifyTokens(tokens: ThemedToken[][]) { FILE: packages/themes/scripts/themes.ts constant RE_IMPORT_PLACEHOLDER (line 4) | const RE_IMPORT_PLACEHOLDER = /"__|__"/g function prepareTheme (line 6) | async function prepareTheme(): Promise { FILE: packages/transformers/src/shared/highlight-word.ts function highlightWordInLine (line 4) | function highlightWordInLine(this: ShikiTransformerContext, line: Elemen... function getTextContent (line 14) | function getTextContent(element: ElementContent): string { function highlightRange (line 29) | function highlightRange( function hasOverlap (line 68) | function hasOverlap(range1: [number, number], range2: [number, number]):... function separateToken (line 72) | function separateToken(span: Element, textNode: Text, index: number, len... function inheritElement (line 95) | function inheritElement(original: Element, overrides: Partial):... FILE: packages/transformers/src/shared/notation-transformer.ts type MatchAlgorithm (line 6) | type MatchAlgorithm = 'v1' | 'v3' type MatchAlgorithmOptions (line 8) | interface MatchAlgorithmOptions { function createCommentNotationTransformer (line 18) | function createCommentNotationTransformer( FILE: packages/transformers/src/shared/parse-comments.ts constant RE_SPLIT_COMMENT (line 4) | const RE_SPLIT_COMMENT = /(\s+\/\/)/ constant RE_V1_END_COMMENT_PREFIX (line 5) | const RE_V1_END_COMMENT_PREFIX = /(?:\/\/|["'#]|;{1,2}|%{1,2}|--)(\s*)$/ constant RE_V3_END_COMMENT_PREFIX (line 6) | const RE_V3_END_COMMENT_PREFIX = /(?:\/\/|#|;{1,2}|%{1,2}|--)(\s*)$/ type ParsedComments (line 8) | type ParsedComments = { function parseComments (line 37) | function parseComments( function isValue (line 167) | function isValue(element: ElementContent, value: string): boolean { function matchToken (line 181) | function matchToken(text: string, isLast: boolean): [prefix: string, con... function v1ClearEndCommentPrefix (line 211) | function v1ClearEndCommentPrefix(text: string): string { function v3ClearEndCommentPrefix (line 226) | function v3ClearEndCommentPrefix(text: string): string { FILE: packages/transformers/src/shared/utils.ts function isTab (line 1) | function isTab(part: string): boolean { function isSpace (line 5) | function isSpace(part: string): boolean { function separateContinuousSpaces (line 9) | function separateContinuousSpaces(inputs: string[]): string[] { function splitSpaces (line 38) | function splitSpaces( FILE: packages/transformers/src/transformers/compact-line-options.ts type TransformerCompactLineOption (line 3) | interface TransformerCompactLineOption { function transformerCompactLineOptions (line 14) | function transformerCompactLineOptions( FILE: packages/transformers/src/transformers/meta-highlight-word.ts constant RE_WORD_MATCH (line 3) | const RE_WORD_MATCH = /\/((?:\\.|[^/])+)\//g constant RE_ESCAPE_BACKSLASH (line 4) | const RE_ESCAPE_BACKSLASH = /\\(.)/g function parseMetaHighlightWords (line 6) | function parseMetaHighlightWords(meta: string): string[] { type TransformerMetaWordHighlightOptions (line 18) | interface TransformerMetaWordHighlightOptions { function transformerMetaWordHighlight (line 30) | function transformerMetaWordHighlight( function findAllSubstringIndexes (line 61) | function findAllSubstringIndexes(str: string, substr: string): number[] { FILE: packages/transformers/src/transformers/meta-highlight.ts constant RE_HIGHLIGHT_LINES (line 3) | const RE_HIGHLIGHT_LINES = /\{([\d,-]+)\}/ function parseMetaHighlightString (line 5) | function parseMetaHighlightString(meta: string): number[] | null { type TransformerMetaHighlightOptions (line 25) | interface TransformerMetaHighlightOptions { function transformerMetaHighlight (line 45) | function transformerMetaHighlight( FILE: packages/transformers/src/transformers/notation-diff.ts type TransformerNotationDiffOptions (line 5) | interface TransformerNotationDiffOptions extends MatchAlgorithmOptions { function transformerNotationDiff (line 27) | function transformerNotationDiff( FILE: packages/transformers/src/transformers/notation-error-level.ts type TransformerNotationErrorLevelOptions (line 5) | interface TransformerNotationErrorLevelOptions extends MatchAlgorithmOpt... function transformerNotationErrorLevel (line 20) | function transformerNotationErrorLevel( FILE: packages/transformers/src/transformers/notation-focus.ts type TransformerNotationFocusOptions (line 5) | interface TransformerNotationFocusOptions extends MatchAlgorithmOptions { function transformerNotationFocus (line 23) | function transformerNotationFocus( FILE: packages/transformers/src/transformers/notation-highlight-word.ts constant RE_CODE_WORD (line 6) | const RE_CODE_WORD = /\s*\[!code word:((?:\\.|[^:\]])+)(:\d+)?\]/ constant RE_UNESCAPE (line 7) | const RE_UNESCAPE = /\\(.)/g type TransformerNotationWordHighlightOptions (line 9) | interface TransformerNotationWordHighlightOptions extends MatchAlgorithm... function transformerNotationWordHighlight (line 20) | function transformerNotationWordHighlight( FILE: packages/transformers/src/transformers/notation-highlight.ts type TransformerNotationHighlightOptions (line 5) | interface TransformerNotationHighlightOptions extends MatchAlgorithmOpti... function transformerNotationHighlight (line 23) | function transformerNotationHighlight( FILE: packages/transformers/src/transformers/notation-map.ts constant RE_ESCAPE_SPECIAL (line 5) | const RE_ESCAPE_SPECIAL = /[.*+?^${}()|[\]\\]/g type TransformerNotationMapOptions (line 7) | interface TransformerNotationMapOptions extends MatchAlgorithmOptions { function escapeRegExp (line 19) | function escapeRegExp(str: string): string { function transformerNotationMap (line 23) | function transformerNotationMap( FILE: packages/transformers/src/transformers/remove-comments.ts type TransformerRemoveCommentsOptions (line 3) | interface TransformerRemoveCommentsOptions { function transformerRemoveComments (line 14) | function transformerRemoveComments( FILE: packages/transformers/src/transformers/remove-line-breaks.ts function transformerRemoveLineBreak (line 7) | function transformerRemoveLineBreak(): ShikiTransformer { FILE: packages/transformers/src/transformers/remove-notation-escape.ts function transformerRemoveNotationEscape (line 9) | function transformerRemoveNotationEscape(): ShikiTransformer { FILE: packages/transformers/src/transformers/render-indent-guides.ts constant RE_INDENT_META (line 4) | const RE_INDENT_META = /\{indent:(\d+|false)\}/ constant RE_NON_BLANK (line 5) | const RE_NON_BLANK = /[^ \t]/ type TransformerRenderIndentGuidesOptions (line 7) | interface TransformerRenderIndentGuidesOptions { function transformerRenderIndentGuides (line 15) | function transformerRenderIndentGuides( FILE: packages/transformers/src/transformers/render-whitespace.ts constant RE_SPACE_OR_TAB (line 5) | const RE_SPACE_OR_TAB = /([ \t])/ type TransformerRenderWhitespaceOptions (line 7) | interface TransformerRenderWhitespaceOptions { function transformerRenderWhitespace (line 32) | function transformerRenderWhitespace( FILE: packages/transformers/src/transformers/style-to-class.ts type TransformerStyleToClassOptions (line 3) | interface TransformerStyleToClassOptions { type ShikiTransformerStyleToClass (line 21) | interface ShikiTransformerStyleToClass extends ShikiTransformer { function transformerStyleToClass (line 31) | function transformerStyleToClass(options: TransformerStyleToClassOptions... function cyrb53 (line 109) | function cyrb53(str: string, seed = 0): string { FILE: packages/transformers/test/fixtures.test.ts constant ONLY (line 19) | const ONLY: string[] = [ function suite (line 23) | function suite( constant CSS_RENDER_WHITESPACE (line 57) | const CSS_RENDER_WHITESPACE = ` constant CSS_COMPARE (line 229) | const CSS_COMPARE = `