add line continuation for YAML tiny
This commit is contained in:
parent
50ec5f5f44
commit
2af816d07b
2 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue