Commit graph

4 commits

Author SHA1 Message Date
Ashkan Kiani 83ddc656b3
Improve algorithm performance and correctness. (#15)
- Disable highlighting for HEX codes and NAME codes when
preceded by alphanumeric codes.
- Hand written parser with 1 pass parsing.
- Update Trie to be more ergonomic.
- Add test file with expected outputs for edge cases.
- Cache matcher creation and refactor.
- Refactor

Faster than ever baby
2019-10-18 21:51:56 -07:00
Ashkan Kiani 6c3d4e4b4c
Update color functions (#13)
- Add hsl, hsla, rgba, RRGGBBAA
- Redo the parser for rgb,rgba,hsl,hsla codes.
- Fix the trie implementation.
- Bugfix and refactor alpha/error handling
2019-10-18 14:27:02 -07:00
Ashkan Kiani 94197db4be Add readme, docs, rgb(), #RGB, and options
- Add support for `rgb(...)` functions behind an option gate.
- Highlight #RGB codes.
- Add options, like `rgb_fn` and `no_names`
- Add luadoc.
2019-10-17 16:26:20 -07:00
Ashkan Kiani f0c8b75cc4 Initial commit. 2019-10-17 15:15:32 -07:00