update components
This commit is contained in:
parent
2a4b879c21
commit
63664e6c1c
1155 changed files with 62261 additions and 84 deletions
55
dashboard-ui/bower_components/prism/tests/languages/parser/variable_feature.test
vendored
Normal file
55
dashboard-ui/bower_components/prism/tests/languages/parser/variable_feature.test
vendored
Normal file
|
@ -0,0 +1,55 @@
|
|||
$foo
|
||||
$foo[bar]
|
||||
$foo_bar[
|
||||
$.baz[foo]
|
||||
$.1[bar]
|
||||
]
|
||||
$foo.$bar
|
||||
$foo.[$bar.baz]
|
||||
$math:PI
|
||||
|
||||
($foo)
|
||||
|
||||
<div class="$foo">
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
[
|
||||
["variable", ["$foo"]],
|
||||
["variable", ["$foo"]], ["punctuation", "["], "bar", ["punctuation", "]"],
|
||||
["variable", ["$foo_bar"]], ["punctuation", "["],
|
||||
["variable", ["$", ["punctuation", "."], "baz"]],
|
||||
["punctuation", "["], "foo", ["punctuation", "]"],
|
||||
["variable", ["$", ["punctuation", "."], "1"]],
|
||||
["punctuation", "["], "bar", ["punctuation", "]"],
|
||||
["punctuation", "]"],
|
||||
["variable", ["$foo", ["punctuation", "."]]], ["variable", ["$bar"]],
|
||||
["variable", ["$foo", ["punctuation", "."]]], ["punctuation", "["],
|
||||
["variable", ["$bar", ["punctuation", "."], "baz"]], ["punctuation", "]"],
|
||||
["variable", ["$math", ["punctuation", ":"], "PI"]],
|
||||
|
||||
["expression", [
|
||||
["punctuation", "("],
|
||||
["variable", ["$foo"]],
|
||||
["punctuation", ")"]
|
||||
]],
|
||||
|
||||
["tag", [
|
||||
["tag", [
|
||||
["punctuation", "<"],
|
||||
"div"
|
||||
]],
|
||||
["attr-name", ["class"]],
|
||||
["attr-value", [
|
||||
["punctuation", "="],
|
||||
["punctuation", "\""],
|
||||
["variable", ["$foo"]],
|
||||
["punctuation", "\""]
|
||||
]],
|
||||
["punctuation", ">"]
|
||||
]]
|
||||
]
|
||||
|
||||
----------------------------------------------------
|
||||
|
||||
Checks for variables.
|
Loading…
Add table
Add a link
Reference in a new issue