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

36 lines
589 B
Plaintext

{assign var=foo value="bar"}
{foo bar = 40}
----------------------------------------------------
[
["smarty", [
["delimiter", "{"],
["function", "assign"],
["attr-name", [
"var",
["operator", "="],
["variable", "foo"]
]],
["attr-name", [
"value",
["operator", "="]
]],
["string", "\"bar\""],
["delimiter", "}"]
]],
["smarty", [
["delimiter", "{"],
["function", "foo"],
["attr-name", [
"bar ",
["operator", "="]
]],
["number", "40"],
["delimiter", "}"]
]]
]
----------------------------------------------------
Checks for attributes.