diff --git a/README.md b/README.md index a0241b7..6e54771 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,6 @@ [b]: https://github.com/atom/highlights [c]: https://macromates.com -# Fukkus # +# Lit # -Fukkus is a multilanguage syntax highlighter written in PHP. It takes code as input and returns HTML with classes based upon tokens in the code. It is loosely based upon [Atom][a]'s [Highlights][b] which is used in the Atom text editor to syntax highlight code. Atom's Highlights is in turn based upon [TextMate][c]'s syntax highlighting using its concepts of scope selectors and common classes for components of programming languages. \ No newline at end of file +Lit is a multilanguage syntax highlighter written in PHP. It takes code as input and returns HTML with classes based upon tokens in the code. It is loosely based upon [Atom][a]'s [Highlights][b] which is used in the Atom text editor to syntax highlight code. Atom's Highlights is in turn based upon [TextMate][c]'s syntax highlighting using its concepts of scope selectors and common classes for components of programming languages. \ No newline at end of file diff --git a/lib/Grammar/Data.php b/lib/Grammar/Data.php index ae0ad78..38eab7b 100644 --- a/lib/Grammar/Data.php +++ b/lib/Grammar/Data.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace dW\Fukkus\Grammar; +namespace dW\Lit\Grammar; class Data { public static function withFile(string $filepath): \Generator { diff --git a/lib/Grammar/Registry.php b/lib/Grammar/Registry.php index cc5b8c5..805bc3f 100644 --- a/lib/Grammar/Registry.php +++ b/lib/Grammar/Registry.php @@ -4,7 +4,7 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace dW\Fukkus\Grammar; +namespace dW\Lit\Grammar; class Registry { protected static array $grammars = []; diff --git a/lib/Grammar/Tokenizer.php b/lib/Grammar/Tokenizer.php index 1bbec56..4695455 100644 --- a/lib/Grammar/Tokenizer.php +++ b/lib/Grammar/Tokenizer.php @@ -4,6 +4,6 @@ * See LICENSE and AUTHORS files for details */ declare(strict_types=1); -namespace dW\Fukkus\Grammar; +namespace dW\Lit\Grammar; class Tokenizer {} \ No newline at end of file diff --git a/lib/Highlight.php b/lib/Highlight.php new file mode 100644 index 0000000..b541ee3 --- /dev/null +++ b/lib/Highlight.php @@ -0,0 +1,17 @@ +