jellyfin-web/dashboard-ui/bower_components/prism/tests/languages/smarty/variable_feature.test

56 lines
1002 B
Plaintext
Raw Normal View History

2016-02-03 16:00:01 -07:00
{$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.