Commit graph

2 commits

Author SHA1 Message Date
Ashkan Kiani f5017b0dc1
Refactor (#19)
- Refactor and clean up old code.
- Fix the trie printing (it's perfect now :o)
- Add the ability to search from a starting point. This can help
avoid allocations.
- Avoid an allocation in longest_prefix.
- Refactor and allow configuring of color_name_parser setup
2019-10-19 12:35:55 -07:00
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