source: trip-planner-front/node_modules/css-tree/lib/tokenizer/const.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.4 KB
Line 
1// CSS Syntax Module Level 3
2// https://www.w3.org/TR/css-syntax-3/
3var TYPE = {
4 EOF: 0, // <EOF-token>
5 Ident: 1, // <ident-token>
6 Function: 2, // <function-token>
7 AtKeyword: 3, // <at-keyword-token>
8 Hash: 4, // <hash-token>
9 String: 5, // <string-token>
10 BadString: 6, // <bad-string-token>
11 Url: 7, // <url-token>
12 BadUrl: 8, // <bad-url-token>
13 Delim: 9, // <delim-token>
14 Number: 10, // <number-token>
15 Percentage: 11, // <percentage-token>
16 Dimension: 12, // <dimension-token>
17 WhiteSpace: 13, // <whitespace-token>
18 CDO: 14, // <CDO-token>
19 CDC: 15, // <CDC-token>
20 Colon: 16, // <colon-token> :
21 Semicolon: 17, // <semicolon-token> ;
22 Comma: 18, // <comma-token> ,
23 LeftSquareBracket: 19, // <[-token>
24 RightSquareBracket: 20, // <]-token>
25 LeftParenthesis: 21, // <(-token>
26 RightParenthesis: 22, // <)-token>
27 LeftCurlyBracket: 23, // <{-token>
28 RightCurlyBracket: 24, // <}-token>
29 Comment: 25
30};
31
32var NAME = Object.keys(TYPE).reduce(function(result, key) {
33 result[TYPE[key]] = key;
34 return result;
35}, {});
36
37module.exports = {
38 TYPE: TYPE,
39 NAME: NAME
40};
Note: See TracBrowser for help on using the repository browser.