| 1 |
---input--- |
| 2 |
{ |
| 3 |
// comments |
| 4 |
unquoted: 'and you can quote me on that', |
| 5 |
singleQuotes: 'I can use "double quotes" here', |
| 6 |
lineBreaks: "Look, Mom! \ |
| 7 |
No \\n's!", |
| 8 |
hexadecimal: 0xdecaf, |
| 9 |
leadingDecimalPoint: .8675309, andTrailing: 8675309., |
| 10 |
positiveSign: +1, |
| 11 |
trailingComma: 'in objects', andIn: ['arrays',], |
| 12 |
"backwardsCompatible": "with JSON", |
| 13 |
} |
| 14 |
|
| 15 |
---tokens--- |
| 16 |
'{' Punctuation |
| 17 |
'\n ' Text.Whitespace |
| 18 |
'// comments\n' Comment.Single |
| 19 |
|
| 20 |
' ' Text.Whitespace |
| 21 |
'unquoted' Name.Variable |
| 22 |
':' Punctuation |
| 23 |
' ' Text.Whitespace |
| 24 |
"'" Literal.String |
| 25 |
'and you can quote me on that' Literal.String |
| 26 |
"'" Literal.String |
| 27 |
',' Punctuation |
| 28 |
'\n ' Text.Whitespace |
| 29 |
'singleQuotes' Name.Variable |
| 30 |
':' Punctuation |
| 31 |
' ' Text.Whitespace |
| 32 |
"'" Literal.String |
| 33 |
'I can use "double quotes" here' Literal.String |
| 34 |
"'" Literal.String |
| 35 |
',' Punctuation |
| 36 |
'\n ' Text.Whitespace |
| 37 |
'lineBreaks' Name.Variable |
| 38 |
':' Punctuation |
| 39 |
' ' Text.Whitespace |
| 40 |
'"' Literal.String |
| 41 |
'Look, Mom! ' Literal.String |
| 42 |
'\\' Punctuation |
| 43 |
'\nNo ' Literal.String |
| 44 |
'\\\\' Literal.String.Escape |
| 45 |
"n's!" Literal.String |
| 46 |
'"' Literal.String |
| 47 |
',' Punctuation |
| 48 |
'\n ' Text.Whitespace |
| 49 |
'hexadecimal' Name.Variable |
| 50 |
':' Punctuation |
| 51 |
' ' Text.Whitespace |
| 52 |
'0xdecaf' Literal.Number.Hex |
| 53 |
',' Punctuation |
| 54 |
'\n ' Text.Whitespace |
| 55 |
'leadingDecimalPoint' Name.Variable |
| 56 |
':' Punctuation |
| 57 |
' ' Text.Whitespace |
| 58 |
'.8675309' Literal.Number.Float |
| 59 |
',' Punctuation |
| 60 |
' ' Text.Whitespace |
| 61 |
'andTrailing' Name.Variable |
| 62 |
':' Punctuation |
| 63 |
' ' Text.Whitespace |
| 64 |
'8675309.' Literal.Number.Float |
| 65 |
',' Punctuation |
| 66 |
'\n ' Text.Whitespace |
| 67 |
'positiveSign' Name.Variable |
| 68 |
':' Punctuation |
| 69 |
' ' Text.Whitespace |
| 70 |
'+1' Literal.Number.Float |
| 71 |
',' Punctuation |
| 72 |
'\n ' Text.Whitespace |
| 73 |
'trailingComma' Name.Variable |
| 74 |
':' Punctuation |
| 75 |
' ' Text.Whitespace |
| 76 |
"'" Literal.String |
| 77 |
'in objects' Literal.String |
| 78 |
"'" Literal.String |
| 79 |
',' Punctuation |
| 80 |
' ' Text.Whitespace |
| 81 |
'andIn' Name.Variable |
| 82 |
':' Punctuation |
| 83 |
' ' Text.Whitespace |
| 84 |
'[' Punctuation |
| 85 |
"'" Literal.String |
| 86 |
'arrays' Literal.String |
| 87 |
"'" Literal.String |
| 88 |
',' Punctuation |
| 89 |
']' Punctuation |
| 90 |
',' Punctuation |
| 91 |
'\n ' Text.Whitespace |
| 92 |
'"' Name.Variable |
| 93 |
'backwardsCompatible"' Name.Variable |
| 94 |
':' Punctuation |
| 95 |
' ' Text.Whitespace |
| 96 |
'"' Literal.String |
| 97 |
'with JSON' Literal.String |
| 98 |
'"' Literal.String |
| 99 |
',' Punctuation |
| 100 |
'\n' Text.Whitespace |
| 101 |
|
| 102 |
'}' Punctuation |
| 103 |
'\n' Text.Whitespace |