This commit is contained in:
2026-01-25 22:09:29 +01:00
parent 1ee28a1644
commit a59dbe1d55
27 changed files with 3435 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
// retoor <retoor@molodetz.nl>
import "yaml" for Yaml
var yaml = "
# This is a comment
name: test
# Another comment
value: 123
"
var data = Yaml.parse(yaml)
System.print(data["name"]) // expect: test
System.print(data["value"]) // expect: 123
var inlineComment = "name: test # inline comment"
var data2 = Yaml.parse(inlineComment)
System.print(data2["name"]) // expect: test