@bablr/cli 0.1.6 → 0.1.8

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/README.md CHANGED
@@ -40,7 +40,7 @@ Running the above command produces the following output. Note that this is a str
40
40
  <>
41
41
  <Array>
42
42
  openToken:
43
- <*Punctuator '[' balanced=']' />
43
+ <~*Punctuator '[' balanced=']' />
44
44
  <#*Space:Space>
45
45
  '\n '
46
46
  </>
@@ -59,36 +59,36 @@ Running the above command produces the following output. Note that this is a str
59
59
  null
60
60
  </>
61
61
  separators[]:
62
- <*Punctuator ',' />
62
+ <~*Punctuator ',' />
63
63
  <#*Space:Space>
64
64
  '\n '
65
65
  </>
66
66
  elements[]:
67
67
  <Boolean>
68
68
  sigilToken:
69
- <*Keyword 'true' />
69
+ <~*Keyword 'true' />
70
70
  </>
71
71
  separators[]:
72
- <*Punctuator ',' />
72
+ <~*Punctuator ',' />
73
73
  <#*Space:Space>
74
74
  '\n '
75
75
  </>
76
76
  elements[]:
77
77
  <String>
78
78
  openToken:
79
- <*Punctuator '"' balanced='"' balancedSpan='String' />
79
+ <~*Punctuator '"' balanced='"' balancedSpan='String' />
80
80
  content:
81
81
  <*StringContent>
82
82
  '3'
83
83
  </>
84
84
  closeToken:
85
- <*Punctuator '"' balancer />
85
+ <~*Punctuator '"' balancer />
86
86
  <#*Space:Space>
87
87
  '\n'
88
88
  </>
89
89
  </>
90
90
  closeToken:
91
- <*Punctuator ']' balancer />
91
+ <~*Punctuator ']' balancer />
92
92
  <#*Space:Space>
93
93
  '\n'
94
94
  </>
package/lib/syntax.js CHANGED
@@ -38,13 +38,9 @@ function* __higlightStrategy(tokens) {
38
38
  (token.value.type === 'String' && currentRef.name === 'intrinsicValue')
39
39
  ) {
40
40
  yield i`push(bold green)`;
41
- } else if (token.value.type === 'String') {
42
- yield i`push(bold white)`;
43
41
  } else if (token.value.type === 'Identifier') {
44
- if (currentType === 'Punctuator' && currentRef.name === 'type') {
45
- yield i`push(whiteBright bold)`;
46
- } else if (currentType === 'Reference') {
47
- yield i`push(gray)`;
42
+ if (currentType === 'Reference') {
43
+ yield i`push(bold gray)`;
48
44
  } else {
49
45
  yield i`push()`;
50
46
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bablr/cli",
3
3
  "description": "CLI for running BABLR parsers",
4
- "version": "0.1.6",
4
+ "version": "0.1.8",
5
5
  "author": "Conrad Buck<conartist6@gmail.com>",
6
6
  "type": "module",
7
7
  "files": [