������� �������/�������� (�������) + ��������� + ������� ���������� #40
@ -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 });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user