Skip to main content

Module highlight

Module highlight 

Source
Expand description

Small hand-rolled highlighters for the three languages this REPL shows: the JSON going over the wire, the Rust it generates, and the command line you are typing.

Functionsยง

command
Highlight the input line: the command, the question name, the | separators, and the label=description / yes: criteria inside them.
json
Highlight pretty-printed JSON, indented into the transcript.
json_spans
One line of JSON. Keys are told from strings by the colon that follows them.
rust
Highlight generated Rust, indented into the transcript.