mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-23 11:29:54 +00:00
refactor(studio-server): referenceSyntax is only read inside fileReferences now
This commit is contained in:
@@ -116,7 +116,7 @@ function spellLike(
|
||||
return SPELLINGS[context.syntax](path, context);
|
||||
}
|
||||
|
||||
export function referenceSyntax(file: string): ReferenceSyntax {
|
||||
function referenceSyntax(file: string): ReferenceSyntax {
|
||||
if (/\.html$/i.test(file)) return "html";
|
||||
if (/\.css$/i.test(file)) return "css";
|
||||
if (/\.(?:[cm]?js|jsx|tsx?|json)$/i.test(file)) return "script";
|
||||
|
||||
Reference in New Issue
Block a user