Dustin Wilson
3 years ago
6 changed files with 27 additions and 27 deletions
@ -1,17 +0,0 @@ |
|||
<?php |
|||
/** @license MIT |
|||
* Copyright 2021 Dustin Wilson et al. |
|||
* See LICENSE and AUTHORS files for details */ |
|||
|
|||
declare(strict_types=1); |
|||
namespace dW\Lit; |
|||
|
|||
class Highlight { |
|||
public static function withFile(string $filename): string { |
|||
$data = Grammar\Data::withFile($filename); |
|||
} |
|||
|
|||
public static function withString(string $string): string { |
|||
$data = Grammar\Data::withString($string); |
|||
} |
|||
} |
@ -0,0 +1,17 @@ |
|||
<?php |
|||
/** @license MIT |
|||
* Copyright 2021 Dustin Wilson et al. |
|||
* See LICENSE and AUTHORS files for details */ |
|||
|
|||
declare(strict_types=1); |
|||
namespace dW\Lit; |
|||
|
|||
class Highlighter { |
|||
public static function highlightFile(string $filepath, string $scopeName) { |
|||
$data = Data::fileToGenerator($filepath); |
|||
} |
|||
|
|||
public static function highlightString(string $string, string $scopeName) { |
|||
$data = Data::stringToGenerator($string); |
|||
} |
|||
} |
Loading…
Reference in new issue