From e2dcac2bf48a9615e64ca61d4dd4ac4a44be8be9 Mon Sep 17 00:00:00 2001 From: Dustin Wilson Date: Fri, 25 Jun 2021 10:46:26 -0500 Subject: [PATCH] Changed Project name to Fukkus --- README | 7 +++++++ lib/Grammar/Data.php | 27 +++++++++++++++++++++++++++ lib/Grammar/Registry.php | 4 ++-- lib/Grammar/Tokenizer.php | 9 +++++++++ lib/Highlighter.php | 14 ++++++++++++++ lib/Scope/Data.php | 2 +- lib/Scope/Exception.php | 6 ++++-- lib/Scope/Matcher.php | 2 +- lib/Scope/Matchers/AndMatcher.php | 2 +- lib/Scope/Matchers/GroupMatcher.php | 2 +- lib/Scope/Matchers/NegateMatcher.php | 2 +- lib/Scope/Matchers/OrMatcher.php | 2 +- lib/Scope/Matchers/PathMatcher.php | 2 +- lib/Scope/Matchers/ScopeMatcher.php | 2 +- lib/Scope/Parser.php | 2 +- 15 files changed, 72 insertions(+), 13 deletions(-) create mode 100644 README create mode 100644 lib/Grammar/Data.php create mode 100644 lib/Grammar/Tokenizer.php create mode 100644 lib/Highlighter.php diff --git a/README b/README new file mode 100644 index 0000000..a0241b7 --- /dev/null +++ b/README @@ -0,0 +1,7 @@ +[a]: https://atom.io +[b]: https://github.com/atom/highlights +[c]: https://macromates.com + +# Fukkus # + +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 diff --git a/lib/Grammar/Data.php b/lib/Grammar/Data.php new file mode 100644 index 0000000..ae0ad78 --- /dev/null +++ b/lib/Grammar/Data.php @@ -0,0 +1,27 @@ +