summaryrefslogtreecommitdiff
path: root/tests/snippets/html/javascript_unclosed.txt
blob: 5754a4f1355a8d491520381c0ff8362f90cceb5a (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
29
30
31
32
33
34
35
36
37
38
39
40
---input---
<script type="text/javascript">
alert("hi");
alert("hi");
alert("hi");
alert("hi");
<div>
hi
</div>

---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

'alert("hi");\nalert("hi");\nalert("hi");\n' Text

'<'           Punctuation
'div'         Name.Tag
'>'           Punctuation
'\nhi\n'      Text

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