Move parsing of colors fully into C

Uses a perfect hash function for color name lookup
This commit is contained in:
Kovid Goyal
2025-12-31 14:19:10 +05:30
parent e14e34948e
commit 573bfb688a
11 changed files with 4709 additions and 790 deletions

View File

@@ -34,6 +34,9 @@ def main(args: list[str]=sys.argv) -> None:
elif which == 'cursors':
from gen.cursors import main
main(args)
elif which == 'color-names':
from gen.color_names import main
main(args)
else:
raise SystemExit(f'Unknown which: {which}')