effective-java-3rd-chinese/docs/_style/prism-master/tests/languages/vala/string_feature.test
2019-03-14 13:10:17 +08:00

64 lines
899 B
Plaintext

""
"fo\"o"
"""Multi line
string"""
@"foo $bar"
@"foo $(bar)"
'a'
'\''
'\\'
----------------------------------------------------
[
["string", "\"\""],
["string", "\"fo\\\"o\""],
["raw-string", "\"\"\"Multi line\r\nstring\"\"\""],
["template-string",
[
["string", "@\"foo "],
[
"interpolation",
[
[
"delimiter", "$"
],
"bar"
]
],
["string", "\""]
]
],
["template-string",
[
["string", "@\"foo "],
[
"interpolation",
[
[
"delimiter",
"$("
],
"bar",
[
"delimiter",
")"
]
]
],
["string", "\""]
]
],
["string", "'a'"],
["string", "'\\''"],
["string", "'\\\\'"]
]
----------------------------------------------------
Checks for normal and verbatim strings.
Also checks for single quoted characters.