mirror of
https://github.com/ruuda/rcl.git
synced 2025-12-23 04:47:19 +00:00
This enables pretty json output, so I can actually read what is going on without having to pipe the output through jq. I also have an idea to add support for color to the pretty-printer, that can easily be enabled or disabled at the config level.
23 lines
309 B
Text
23 lines
309 B
Text
[
|
|
// Regular integers.
|
|
42,
|
|
0,
|
|
|
|
// With numeric underscores.
|
|
1_000_000,
|
|
|
|
// Hexadecimal.
|
|
0xc0ffee,
|
|
|
|
// Hexadecimal with numeric underscores.
|
|
0x_c0_ff_ee,
|
|
|
|
// Binary.
|
|
0b10001,
|
|
|
|
// Binary with numeric underscores,
|
|
0b_0001_0001,
|
|
]
|
|
|
|
# output:
|
|
[42, 0, 1000000, 12648430, 12648430, 17, 17]
|