MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / isHighlightable

Function isHighlightable

ui-tui/src/lib/syntax.ts:71–71  ·  view source on GitHub ↗
(lang: string)

Source from the content-addressed store, hash-verified

69const resolve = (lang: string): LangSpec | null => LANGS[ALIAS[lang] ?? lang] ?? null
70
71export const isHighlightable = (lang: string): boolean => resolve(lang) !== null
72
73const TOKEN_RE = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*`|\b\d+(?:\.\d+)?\b|[A-Za-z_$][\w$]*/g
74

Callers 2

MdImplFunction · 0.85
syntax.test.tsFile · 0.85

Calls 1

resolveFunction · 0.70

Tested by

no test coverage detected