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()) {
|
if (isBSlash()) {
|
||||||
read();
|
read();
|
||||||
switch (current()) {
|
switch (current()) {
|
||||||
|
case EOL:
|
||||||
|
read();
|
||||||
|
skipBlanks();
|
||||||
|
stringBuilder.append(current());
|
||||||
|
break;
|
||||||
case '0':
|
case '0':
|
||||||
stringBuilder.append('\0');
|
stringBuilder.append('\0');
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -38,6 +38,8 @@ types:
|
||||||
Hello, this is
|
Hello, this is
|
||||||
a very important message
|
a very important message
|
||||||
with new lines folded into spaces
|
with new lines folded into spaces
|
||||||
|
continuing: "abc\
|
||||||
|
def"
|
||||||
# text string is one kept literal originally (but cannot comment the value)
|
# text string is one kept literal originally (but cannot comment the value)
|
||||||
text: |
|
text: |
|
||||||
def func(x) do
|
def func(x) do
|
||||||
|
|
Loading…
Reference in a new issue