ahk2_lib
ahk2_lib copied to clipboard
[YAML.ahk] Indentation problem.
This can be parsed:
text := "
(
Item:
- a: hello
b: world
c:
- subitem1
- subitem2
)"
obj := YAML.parse(text)
But If I move b after c, it throws an indentation error:
text := "
(
Item:
- a: hello
c:
- subitem1
- subitem2
b: world
)"
obj := YAML.parse(text)
This is a long-standing issue. This can also be parsed.
Item:
-
a: hello
c:
- subitem1
- subitem2
b: world
This can also be parsed.
Thanks. I'll try that.
This is a long-standing issue. This can also be parsed.
YAML.stringify generates code, which then cannot be read by YAML.parse. It's so weird. Don't you think?