Module colorizer

Module colorizer 

Source
Expand description

CQL syntax colorization for the REPL prompt and output.

Provides a simple tokenizer that applies ANSI colors to CQL keywords, string literals, numbers, and comments using crossterm styling. Also provides output coloring for query result values, headers, and errors matching Python cqlsh’s color scheme.

Structs§

CqlColorizer
CQL syntax colorizer using ANSI escape codes.

Constants§

KEYWORDS 🔒
Set of CQL keywords to highlight (uppercase for matching).

Functions§

is_keyword 🔒
Check if a word is a CQL keyword (case-insensitive).