29 lines
694 B
Plaintext
29 lines
694 B
Plaintext
|
---
|
||
|
foo: ""
|
||
|
bar: "fo\"obar"
|
||
|
foo: ''
|
||
|
bar: 'fo\'obar'
|
||
|
foo: "foo" # bar
|
||
|
bar: 'bar' # foo
|
||
|
|
||
|
----------------------------------------------------
|
||
|
|
||
|
[
|
||
|
["punctuation", "---"],
|
||
|
["key", "foo"], ["punctuation", ":"],
|
||
|
["string", "\"\""],
|
||
|
["key", "bar"], ["punctuation", ":"],
|
||
|
["string", "\"fo\\\"obar\""],
|
||
|
["key", "foo"], ["punctuation", ":"],
|
||
|
["string", "''"],
|
||
|
["key", "bar"], ["punctuation", ":"],
|
||
|
["string", "'fo\\'obar'"],
|
||
|
["key", "foo"], ["punctuation", ":"],
|
||
|
["string", "\"foo\""], ["comment", "# bar"],
|
||
|
["key", "bar"], ["punctuation", ":"],
|
||
|
["string", "'bar'"], ["comment", "# foo"]
|
||
|
]
|
||
|
|
||
|
----------------------------------------------------
|
||
|
|
||
|
Checks for strings.
|