summaryrefslogtreecommitdiff
path: root/tests/snippets/html/javascript.txt
blob: 5e12df2e7b6572bb963abfc38926bc556cac5237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---input---
<script type="text/javascript">
alert("hi");
</script>

---tokens---
'<'           Punctuation
'script'      Name.Tag
' '           Text
'type'        Name.Attribute
'='           Operator
'"text/javascript"' Literal.String
'>'           Punctuation
''            Text
'\n'          Text.Whitespace

'alert'       Name.Other
'('           Punctuation
'"hi"'        Literal.String.Double
')'           Punctuation
';'           Punctuation
'\n'          Text.Whitespace

'<'           Punctuation
'/'           Punctuation
'script'      Name.Tag
'>'           Punctuation
'\n'          Text