fix(studio): убрать лишний escape \[ в docsLang regex (CI lint error из влитого main)
All checks were successful
All checks were successful
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
2f9d6a21f6
commit
ba71f5f4b9
@ -83,7 +83,7 @@ export function highlightCode(text, lang) {
|
|||||||
// Классифицируем
|
// Классифицируем
|
||||||
if (tok.startsWith('--') || tok.startsWith('//') || tok.startsWith('/*')) {
|
if (tok.startsWith('--') || tok.startsWith('//') || tok.startsWith('/*')) {
|
||||||
tokens.push({ type: 'comment', text: tok });
|
tokens.push({ type: 'comment', text: tok });
|
||||||
} else if (/^["'`\[]/.test(tok)) {
|
} else if (/^["'`[]/.test(tok)) {
|
||||||
tokens.push({ type: 'string', text: tok });
|
tokens.push({ type: 'string', text: tok });
|
||||||
} else if (/^\d/.test(tok)) {
|
} else if (/^\d/.test(tok)) {
|
||||||
tokens.push({ type: 'number', text: tok });
|
tokens.push({ type: 'number', text: tok });
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user