Add Syntax class, from step 157
This commit is contained in:
parent
cb8eb05249
commit
26eb9170f7
24
src/Syntax.php
Normal file
24
src/Syntax.php
Normal 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() {}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user