Update.
This commit is contained in:
Vendored
+18
@@ -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
|
||||
Reference in New Issue
Block a user