������� �������/�������� (�������) + ��������� + ������� ���������� #40

Merged
min merged 4 commits from restore/all-tasks into main 2026-06-09 22:49:22 +00:00
Showing only changes of commit ba71f5f4b9 - Show all commits

View File

@ -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 });