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

56 lines
1002 B
Plaintext

{$foo}
{$foo_bar42}
{#pageTitle#}
{$foo.bar.baz}
{$foo->bar->baz}
{$foo[row]}
----------------------------------------------------
[
["smarty", [
["delimiter", "{"],
["variable", "$foo"],
["delimiter", "}"]
]],
["smarty", [
["delimiter", "{"],
["variable", "$foo_bar42"],
["delimiter", "}"]
]],
["smarty", [
["delimiter", "{"],
["variable", "#pageTitle#"],
["delimiter", "}"]
]],
["smarty", [
["delimiter", "{"],
["variable", "$foo"],
["punctuation", "."],
["variable", "bar"],
["punctuation", "."],
["variable", "baz"],
["delimiter", "}"]
]],
["smarty", [
["delimiter", "{"],
["variable", "$foo"],
["punctuation", "->"],
["variable", "bar"],
["punctuation", "->"],
["variable", "baz"],
["delimiter", "}"]
]],
["smarty", [
["delimiter", "{"],
["variable", "$foo"],
["punctuation", "["],
["variable", "row"],
["punctuation", "]"],
["delimiter", "}"]
]]
]
----------------------------------------------------
Checks for variables.