MCPcopy Create free account
hub / github.com/adobe/react-spectrum / isSupportedLanguage

Function isSupportedLanguage

packages/dev/s2-docs/src/Code.tsx:74–77  ·  view source on GitHub ↗
(lang: string)

Source from the content-addressed store, hash-verified

72
73// Check if a language is supported by tree-sitter for syntax highlighting
74function isSupportedLanguage(lang: string): boolean {
75 const supported = ['js', 'jsx', 'ts', 'tsx', 'css', 'json'];
76 return supported.includes(lang.toLowerCase());
77}
78
79export function Code({
80 children,

Callers 1

CodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected