| 1 |
---input--- |
| 2 |
// An empty array |
| 3 |
[] |
| 4 |
|
| 5 |
// An array with three elements |
| 6 |
// and a trailing comma |
| 7 |
[ |
| 8 |
1, |
| 9 |
true, |
| 10 |
'three', |
| 11 |
] |
| 12 |
|
| 13 |
// Arrays can be nested |
| 14 |
[ |
| 15 |
[1, true, 'three'], |
| 16 |
[4, "five", 0x6], |
| 17 |
] |
| 18 |
|
| 19 |
---tokens--- |
| 20 |
'// An empty array\n' Comment.Single |
| 21 |
|
| 22 |
'[' Punctuation |
| 23 |
']' Punctuation |
| 24 |
'\n\n' Text.Whitespace |
| 25 |
|
| 26 |
'// An array with three elements\n' Comment.Single |
| 27 |
|
| 28 |
'// and a trailing comma\n' Comment.Single |
| 29 |
|
| 30 |
'[' Punctuation |
| 31 |
'\n ' Text.Whitespace |
| 32 |
'1' Literal.Number.Float |
| 33 |
',' Punctuation |
| 34 |
'\n ' Text.Whitespace |
| 35 |
'true' Keyword |
| 36 |
',' Punctuation |
| 37 |
'\n ' Text.Whitespace |
| 38 |
"'" Literal.String |
| 39 |
'three' Literal.String |
| 40 |
"'" Literal.String |
| 41 |
',' Punctuation |
| 42 |
'\n' Text.Whitespace |
| 43 |
|
| 44 |
']' Punctuation |
| 45 |
'\n\n' Text.Whitespace |
| 46 |
|
| 47 |
'// Arrays can be nested\n' Comment.Single |
| 48 |
|
| 49 |
'[' Punctuation |
| 50 |
'\n ' Text.Whitespace |
| 51 |
'[' Punctuation |
| 52 |
'1' Literal.Number.Float |
| 53 |
',' Punctuation |
| 54 |
' ' Text.Whitespace |
| 55 |
'true' Keyword |
| 56 |
',' Punctuation |
| 57 |
' ' Text.Whitespace |
| 58 |
"'" Literal.String |
| 59 |
'three' Literal.String |
| 60 |
"'" Literal.String |
| 61 |
']' Punctuation |
| 62 |
',' Punctuation |
| 63 |
'\n ' Text.Whitespace |
| 64 |
'[' Punctuation |
| 65 |
'4' Literal.Number.Float |
| 66 |
',' Punctuation |
| 67 |
' ' Text.Whitespace |
| 68 |
'"' Literal.String |
| 69 |
'five' Literal.String |
| 70 |
'"' Literal.String |
| 71 |
',' Punctuation |
| 72 |
' ' Text.Whitespace |
| 73 |
'0x6' Literal.Number.Hex |
| 74 |
']' Punctuation |
| 75 |
',' Punctuation |
| 76 |
'\n' Text.Whitespace |
| 77 |
|
| 78 |
']' Punctuation |
| 79 |
'\n' Text.Whitespace |