CS-Notes/docs/_style/prism-master/tests/languages/jsx/issue1294.test
2018-12-19 14:09:39 +08:00

72 lines
1.4 KiB
Plaintext

export default () => (
<div>
<h1>Hi! I'm building a fake Gatsby site as part of a tutorial!</h1>
<p>
What do I like to do? Lots of course but definitely enjoy building
websites.
</p>
</div>
);
----------------------------------------------------
[
["keyword", "export"],
["keyword", "default"],
["punctuation", "("],
["punctuation", ")"],
["operator", "=>"], ["punctuation", "("],
["tag", [
["tag", [
["punctuation", "<"],
"div"
]],
["punctuation", ">"]
]],
["plain-text", "\r\n\t\t"],
["tag", [
["tag", [
["punctuation", "<"],
"h1"
]],
["punctuation", ">"]
]],
["plain-text", "Hi! I'm building a fake Gatsby site as part of a tutorial!"],
["tag", [
["tag", [
["punctuation", "</"],
"h1"
]],
["punctuation", ">"]
]],
["plain-text", "\r\n\t\t"],
["tag", [
["tag", [
["punctuation", "<"],
"p"
]],
["punctuation", ">"]
]],
["plain-text", "\r\n\t\t\tWhat do I like to do? Lots of course but definitely enjoy building\r\n\t\t\twebsites.\r\n\t\t"],
["tag", [
["tag", [
["punctuation", "</"],
"p"
]],
["punctuation", ">"]
]],
["plain-text", "\r\n\t"],
["tag", [
["tag", [
["punctuation", "</"],
"div"
]],
["punctuation", ">"]
]],
["punctuation", ")"], ["punctuation", ";"]
]
----------------------------------------------------
See #1294.