mirror of
https://github.com/ruuda/rcl.git
synced 2025-12-23 04:47:19 +00:00
I am still ambivalent about this. On the one hand I have a strong sense that "key = value;" is a statement that needs a terminator. On the other hand, it makes things more uniform to have only a single separator. I think I just need to get used to the comma, and then I will not mind so much. But let's see.
24 lines
895 B
Text
24 lines
895 B
Text
{
|
|
name = "Begonia rex",
|
|
// The string literal should be preserved verbatim, even though its
|
|
// indentation would place other items further to the right.
|
|
water_remark = "Keep the soil evenly moist,
|
|
water again when it is dry to the touch.",
|
|
note = "
|
|
The comment in the previous field already forces it to be tall, and the hard
|
|
break becomes irrelevant. This string is forced tall because of the hard
|
|
break inside it.",
|
|
}
|
|
|
|
# output:
|
|
{
|
|
name = "Begonia rex",
|
|
// The string literal should be preserved verbatim, even though its
|
|
// indentation would place other items further to the right.
|
|
water_remark = "Keep the soil evenly moist,
|
|
water again when it is dry to the touch.",
|
|
note = "
|
|
The comment in the previous field already forces it to be tall, and the hard
|
|
break becomes irrelevant. This string is forced tall because of the hard
|
|
break inside it.",
|
|
}
|