Type.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?php
  2. /**
  3. * SCSSPHP
  4. *
  5. * @copyright 2012-2015 Leaf Corcoran
  6. *
  7. * @license http://opensource.org/licenses/MIT MIT
  8. *
  9. * @link http://leafo.github.io/scssphp
  10. */
  11. namespace Leafo\ScssPhp;
  12. /**
  13. * Block/node types
  14. *
  15. * @author Anthon Pang <anthon.pang@gmail.com>
  16. */
  17. class Type
  18. {
  19. const T_ASSIGN = 'assign';
  20. const T_AT_ROOT = 'at-root';
  21. const T_BLOCK = 'block';
  22. const T_BREAK = 'break';
  23. const T_CHARSET = 'charset';
  24. const T_COLOR = 'color';
  25. const T_COMMENT = 'comment';
  26. const T_CONTINUE = 'continue';
  27. const T_CONTROL = 'control';
  28. const T_DEBUG = 'debug';
  29. const T_DIRECTIVE = 'directive';
  30. const T_EACH = 'each';
  31. const T_ELSE = 'else';
  32. const T_ELSEIF = 'elseif';
  33. const T_ERROR = 'error';
  34. const T_EXPRESSION = 'exp';
  35. const T_EXTEND = 'extend';
  36. const T_FOR = 'for';
  37. const T_FUNCTION = 'function';
  38. const T_FUNCTION_CALL = 'fncall';
  39. const T_HSL = 'hsl';
  40. const T_IF = 'if';
  41. const T_IMPORT = 'import';
  42. const T_INCLUDE = 'include';
  43. const T_INTERPOLATE = 'interpolate';
  44. const T_INTERPOLATED = 'interpolated';
  45. const T_KEYWORD = 'keyword';
  46. const T_LIST = 'list';
  47. const T_MAP = 'map';
  48. const T_MEDIA = 'media';
  49. const T_MEDIA_EXPRESSION = 'mediaExp';
  50. const T_MEDIA_TYPE = 'mediaType';
  51. const T_MEDIA_VALUE = 'mediaValue';
  52. const T_MIXIN = 'mixin';
  53. const T_MIXIN_CONTENT = 'mixin_content';
  54. const T_NESTED_PROPERTY = 'nestedprop';
  55. const T_NOT = 'not';
  56. const T_NULL = 'null';
  57. const T_NUMBER = 'number';
  58. const T_RETURN = 'return';
  59. const T_ROOT = 'root';
  60. const T_SCSSPHP_IMPORT_ONCE = 'scssphp-import-once';
  61. const T_SELF = 'self';
  62. const T_STRING = 'string';
  63. const T_UNARY = 'unary';
  64. const T_VARIABLE = 'var';
  65. const T_WARN = 'warn';
  66. const T_WHILE = 'while';
  67. }