Skip to content

An example of parsing failure #15

@skelet8801

Description

@skelet8801

why parse "text" fail and "text2" Success ??
This is my test code.:
https://www.autohotkey.com/boards/viewtopic.php?f=83&t=70235&p=506199#p506199

#Requires AutoHotkey v2.0
#SingleInstance Force
#Include Yaml.ahk

text:="
(
chlds:

a1title: 0301
  • a1title: 0301
  • a1title: 0301
    )"

text2:="
(
chlds:

a1title: 0301
  • a1title: 0301
    )"

y := Yaml(text) ;Fail
;y := Yaml(text2) ;Success

MsgBox Yaml(y,5) ; Dump objects back into Yaml
esc::ExitApp

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions