| 1 |
{ foo: 1, "bar": 2, "foo\("Bar")": 3 } |
| 2 |
|
| 3 |
# not a property |
| 4 |
foo::bar |
| 5 |
|
| 6 |
---------------------------------------------------- |
| 7 |
|
| 8 |
[ |
| 9 |
["punctuation", "{"], |
| 10 |
["property-literal", "foo"], |
| 11 |
["punctuation", ":"], |
| 12 |
["number", "1"], |
| 13 |
["punctuation", ","], |
| 14 |
["property", [ |
| 15 |
"\"bar\"" |
| 16 |
]], |
| 17 |
["punctuation", ":"], |
| 18 |
["number", "2"], |
| 19 |
["punctuation", ","], |
| 20 |
["property", [ |
| 21 |
"\"foo", |
| 22 |
["interpolation", [ |
| 23 |
["punctuation", "\\("], |
| 24 |
["content", [ |
| 25 |
["string", [ |
| 26 |
"\"Bar\"" |
| 27 |
]] |
| 28 |
]], |
| 29 |
["punctuation", ")"] |
| 30 |
]], |
| 31 |
"\"" |
| 32 |
]], |
| 33 |
["punctuation", ":"], |
| 34 |
["number", "3"], |
| 35 |
["punctuation", "}"], |
| 36 |
|
| 37 |
["comment", "# not a property"], |
| 38 |
"\r\nfoo", |
| 39 |
["punctuation", "::"], |
| 40 |
"bar" |
| 41 |
] |
| 42 |
|
| 43 |
---------------------------------------------------- |
| 44 |
|
| 45 |
Checks for properties. |