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

68 lines
901 B
Plaintext

^$
^^
^;
^@
^(
^)
^[
^]
^{
^}
^"
^'
^:
^#
^#20
^#af
^#AF
^^date::now
^$foobar
<div class="foo^^bar">
----------------------------------------------------
[
["escape", "^$"],
["escape", "^^"],
["escape", "^;"],
["escape", "^@"],
["escape", "^("],
["escape", "^)"],
["escape", "^["],
["escape", "^]"],
["escape", "^{"],
["escape", "^}"],
["escape", "^\""],
["escape", "^'"],
["escape", "^:"],
["escape", "^#"],
["escape", "^#20"],
["escape", "^#af"],
["escape", "^#AF"],
["escape", "^^"], "date::now\r\n",
["escape", "^$"], "foobar\r\n\r\n",
["tag", [
["tag", [
["punctuation", "<"],
"div"
]],
["attr-name", ["class"]],
["attr-value", [
["punctuation", "="],
["punctuation", "\""],
"foo",
["escape", "^^"],
"bar",
["punctuation", "\""]
]],
["punctuation", ">"]
]]
]
----------------------------------------------------
Checks for escapes.