jellyfin-web/dashboard-ui/bower_components/prism/tests/languages/kotlin/interpolation_feature.test
2016-02-03 18:00:01 -05:00

46 lines
989 B
Plaintext

"$foo ${bar} ${'$'} ${foobar()}"
"""
$foo ${bar}
${'$'} ${foobar()}
"""
----------------------------------------------------
[
["string", [
"\"",
["interpolation", "$foo"],
["interpolation", [
["delimiter", "${"], "bar", ["delimiter", "}"]
]],
["interpolation", [
["delimiter", "${"], ["string", "'$'"], ["delimiter", "}"]
]],
["interpolation", [
["delimiter", "${"],
["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
["delimiter", "}"]
]],
"\""
]],
["raw-string", [
"\"\"\"\r\n",
["interpolation", "$foo"],
["interpolation", [
["delimiter", "${"], "bar", ["delimiter", "}"]
]],
["interpolation", [
["delimiter", "${"], ["string", "'$'"], ["delimiter", "}"]
]],
["interpolation", [
["delimiter", "${"],
["function", "foobar"], ["punctuation", "("], ["punctuation", ")"],
["delimiter", "}"]
]],
"\r\n\"\"\""
]]
]
----------------------------------------------------
Checks for string interpolation.