Add Syntax class, from step 157

This commit is contained in:
Timothy Warren 2019-10-24 16:58:52 -04:00
parent cb8eb05249
commit 26eb9170f7
1 changed files with 24 additions and 0 deletions

24
src/Syntax.php Normal file
View File

@ -0,0 +1,24 @@
<?php declare(strict_types=1);
namespace Kilo;
class Syntax {
public const HIGHLIGHT_NUMBERS = (1 << 0);
public string $filetype = '';
public array $filematch = [];
public int $flags = 0;
public static function new(string $name, array $extList, int $flags): self
{
$self = new self();
$self->filetype = $name;
$self->filematch = $extList;
$self->flags = $flags;
return $self;
}
private function __construct() {}
}