diff --git a/src/community/docsLang.jsx b/src/community/docsLang.jsx index ffeb43d..7118e92 100644 --- a/src/community/docsLang.jsx +++ b/src/community/docsLang.jsx @@ -83,7 +83,7 @@ export function highlightCode(text, lang) { // Классифицируем if (tok.startsWith('--') || tok.startsWith('//') || tok.startsWith('/*')) { tokens.push({ type: 'comment', text: tok }); - } else if (/^["'`\[]/.test(tok)) { + } else if (/^["'`[]/.test(tok)) { tokens.push({ type: 'string', text: tok }); } else if (/^\d/.test(tok)) { tokens.push({ type: 'number', text: tok });