token.js 723 B

12345678910111213141516
  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. RULE: 'rule', // e.g `div > a{...}`
  13. RULE_SCOPE: 'rule-scope' // e.g `div > a`
  14. };
  15. module.exports = Token;