ahk2_lib icon indicating copy to clipboard operation
ahk2_lib copied to clipboard

[YAML.ahk] Indentation problem.

Open lstrfwp opened this issue 1 year ago • 3 comments

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)

lstrfwp avatar Nov 20 '24 20:11 lstrfwp

This is a long-standing issue. This can also be parsed.

Item:
  - 
    a: hello
    c:
      - subitem1
      - subitem2
    b: world

thqby avatar Dec 02 '24 09:12 thqby

This can also be parsed.

Thanks. I'll try that.

lstrfwp avatar Dec 03 '24 20:12 lstrfwp

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?

krasnovpro avatar Apr 06 '25 00:04 krasnovpro