Tim van der Lippe | 652ccb7 | 2021-05-27 17:07:12 +0100 | [diff] [blame^] | 1 | var Token = { |
| 2 | AT_RULE: 'at-rule', // e.g. `@import`, `@charset` |
| 3 | AT_RULE_BLOCK: 'at-rule-block', // e.g. `@font-face{...}` |
| 4 | AT_RULE_BLOCK_SCOPE: 'at-rule-block-scope', // e.g. `@font-face` |
| 5 | COMMENT: 'comment', // e.g. `/* comment */` |
| 6 | NESTED_BLOCK: 'nested-block', // e.g. `@media screen{...}`, `@keyframes animation {...}` |
| 7 | NESTED_BLOCK_SCOPE: 'nested-block-scope', // e.g. `@media`, `@keyframes` |
| 8 | PROPERTY: 'property', // e.g. `color:red` |
| 9 | PROPERTY_BLOCK: 'property-block', // e.g. `--var:{color:red}` |
| 10 | PROPERTY_NAME: 'property-name', // e.g. `color` |
| 11 | PROPERTY_VALUE: 'property-value', // e.g. `red` |
| 12 | RAW: 'raw', // e.g. anything between /* clean-css ignore:start */ and /* clean-css ignore:end */ comments |
| 13 | RULE: 'rule', // e.g `div > a{...}` |
| 14 | RULE_SCOPE: 'rule-scope' // e.g `div > a` |
| 15 | }; |
| 16 | |
| 17 | module.exports = Token; |