php-kilo/src/hldb.php

42 lines
627 B
PHP
Raw Normal View History

2019-10-25 10:28:15 -04:00
<?php declare(strict_types=1);
namespace Kilo;
function get_hldb(): array
{
static $db = [];
if (count($db) === 0)
{
$db = [
Syntax::new(
'C',
2019-10-25 10:28:15 -04:00
['.c', '.h', '.cpp'],
Syntax::HIGHLIGHT_NUMBERS,
),
Syntax::new(
'CSS',
['.css', '.less', '.sass', 'scss'],
Syntax::HIGHLIGHT_NUMBERS,
),
Syntax::new(
'JavaScript',
['.js', '.jsx', '.ts', '.tsx', '.jsm', '.es'],
Syntax::HIGHLIGHT_NUMBERS,
),
Syntax::new(
'PHP',
['.php'],
Syntax::HIGHLIGHT_NUMBERS,
),
Syntax::new(
'Rust',
['.rs'],
Syntax::HIGHLIGHT_NUMBERS,
),
2019-10-25 10:28:15 -04:00
];
}
return $db;
}