From f767472cab9e2dd3bfa48e9aa449c1c27e7b0361 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Wed, 7 Feb 2024 13:06:09 -0800 Subject: [PATCH] small readme improvements --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d961c77..b9175e7 100644 --- a/README.md +++ b/README.md @@ -156,20 +156,20 @@ node2 "this\nhas\tescapes" node3 #"C:\Users\zkat\raw\string"# ``` -You don't have to quote strings unless they contain whitespace, or if any the -following apply: - * The string contains any of `[]{}()\/#";`. +You don't have to quote strings unless any the following apply: * The string contains whitespace. + * The string contains any of `[]{}()\/#";`. * The string is one of `true`, `false`, or `null`. - * The strings starts with a digit, or `+`/`-` and a digit. + * The strings starts with a digit, or `+`/`-`/`.`/`-.`,`+.` and a digit. * The string contains an equals sign (including unicode equals signs `﹦`, `=`, and `🟰`). -In essence, if it can get confused for other KDL syntax, it needs quotes. +In essence, if it can get confused for other KDL or KQL syntax, it needs +quotes. Both types of quoted string can be multiline as-is, without a different -syntax. Additionally, these multi-line strings will be "dedented" according to -the common indentation that all lines share: +syntax. Additionally, common indentation shared with the line containing the +closing quote will be stripped/dedented: ```kdl string " @@ -196,7 +196,7 @@ You can add any number of `#`s before and after the opening and closing `#` to disambiguate literal closing `#"` sequences: ```kdl -other-raw ##"hello"#world"## +other-raw ##"hello#"world"## ``` #### Numbers @@ -248,7 +248,7 @@ hello ``` On top of that, KDL supports `/-` "slashdash" comments, which can be used to -comment out individual nodes, arguments, or children: +comment out individual nodes, arguments, or child blocks: ```kdl // This entire node and its children are all commented out.