@d-zero/csstree-scss-syntax 5.0.0-alpha.14 → 5.0.0-alpha.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,7 @@
1
1
  import * as CSSTree from 'css-tree';
2
-
3
2
  import SassVariable from './node/sass-variable.js';
4
3
  const DELIM = 9;
5
- const DOLLAR_SIGN = 36; // U+0024 DOLLAR SIGN ($)
4
+ const DOLLAR_SIGN = 0x00_24; // U+0024 DOLLAR SIGN ($)
6
5
  const forked = CSSTree.fork(
7
6
  // @ts-ignore
8
7
  function (syntax, assign) {
package/dist/types.d.ts CHANGED
@@ -51,11 +51,21 @@ export type TypeToken = {
51
51
  syntax: Syntax<'Type'> & {
52
52
  opts: null | Record<string, string>;
53
53
  };
54
- match: (TypeToken | KeywordToken)[];
54
+ match: (TypeToken | KeywordToken)[] | [ValueToken];
55
55
  };
56
56
  export type KeywordToken = {
57
57
  syntax: Syntax<'Keyword'>;
58
58
  token: string;
59
59
  node: null;
60
60
  };
61
+ export type ValueToken = {
62
+ syntax: null;
63
+ token: string;
64
+ node: ValueNode;
65
+ };
66
+ type ValueNode = {
67
+ type: string;
68
+ value: string;
69
+ loc: null;
70
+ };
61
71
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-zero/csstree-scss-syntax",
3
- "version": "5.0.0-alpha.14",
3
+ "version": "5.0.0-alpha.16",
4
4
  "description": "SCSS syntax processor based on csstree",
5
5
  "repository": "https://github.com/d-zero-dev/linters.git",
6
6
  "author": "D-ZERO Co., Ltd.",
@@ -25,5 +25,5 @@
25
25
  "dependencies": {
26
26
  "css-tree": "2.3.1"
27
27
  },
28
- "gitHead": "9ba13d8a3153a50f989d9a32fdddec4c43fbb8fa"
28
+ "gitHead": "baddf6a71360a679cb0e418d791daab1605e710f"
29
29
  }