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 thelabel=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.