add line continuation for YAML tiny

This commit is contained in:
Jörg Prante 2021-11-25 12:08:09 +01:00
parent 50ec5f5f44
commit 2af816d07b
2 changed files with 7 additions and 0 deletions

View file

@ -182,6 +182,11 @@ public class Lexer {
if (isBSlash()) {
read();
switch (current()) {
case EOL:
read();
skipBlanks();
stringBuilder.append(current());
break;
case '0':
stringBuilder.append('\0');
break;

View file

@ -38,6 +38,8 @@ types:
Hello, this is
a very important message
with new lines folded into spaces
continuing: "abc\
def"
# text string is one kept literal originally (but cannot comment the value)
text: |
def func(x) do