@bablr/cli 0.5.0 → 0.6.0

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.
Files changed (2) hide show
  1. package/lib/syntax.js +4 -4
  2. package/package.json +10 -10
package/lib/syntax.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  import { buildFullyQualifiedSpamMatcher } from '@bablr/agast-vm-helpers';
19
19
  import { OpenNodeTag, CloseNodeTag, ReferenceTag, LiteralTag } from '@bablr/agast-helpers/symbols';
20
20
 
21
- function* __higlightStrategy(context, tokens) {
21
+ function* __higlightStrategy(tokens, options) {
22
22
  const co = new Coroutine(getStreamIterator(tokens));
23
23
 
24
24
  let types = emptyStack;
@@ -106,8 +106,8 @@ function* __higlightStrategy(context, tokens) {
106
106
  }
107
107
  }
108
108
 
109
- export const higlightStrategy = (context, tokens) => {
110
- return new StreamIterable(__higlightStrategy(context, tokens));
109
+ export const higlightStrategy = (tokens, options) => {
110
+ return new StreamIterable(__higlightStrategy(tokens, options));
111
111
  };
112
112
 
113
113
  export const createPrintCSTMLStrategy =
@@ -135,7 +135,7 @@ export const createPrintCSTMLStrategy =
135
135
  input,
136
136
  );
137
137
 
138
- return higlightStrategy(context, tokens);
138
+ return higlightStrategy(tokens, { ctx: context });
139
139
  } else {
140
140
  return outputInstructions;
141
141
  }
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.5.0",
4
+ "version": "0.6.0",
5
5
  "author": "Conrad Buck<conartist6@gmail.com>",
6
6
  "type": "module",
7
7
  "files": [
@@ -17,18 +17,18 @@
17
17
  },
18
18
  "sideEffects": false,
19
19
  "dependencies": {
20
- "@bablr/agast-helpers": "0.4.0",
21
- "@bablr/agast-vm-helpers": "0.4.0",
22
- "@bablr/io-vm-node": "0.4.0",
23
- "@bablr/boot": "0.5.0",
20
+ "@bablr/agast-helpers": "^0.5.0",
21
+ "@bablr/agast-vm-helpers": "^0.5.0",
22
+ "@bablr/io-vm-node": "^0.5.0",
23
+ "@bablr/boot": "^0.6.0",
24
24
  "@bablr/coroutine": "0.1.0",
25
- "@bablr/helpers": "0.19.0",
26
- "@bablr/language-en-cstml": "0.5.0",
27
- "@bablr/language-en-bablr-cli-verbose-output": "0.4.0",
25
+ "@bablr/helpers": "^0.20.0",
26
+ "@bablr/language-en-cstml": "^0.6.0",
27
+ "@bablr/language-en-bablr-cli-verbose-output": "^0.5.0",
28
28
  "@iter-tools/imm-stack": "1.1.0",
29
- "bablr": "0.5.0",
29
+ "bablr": "^0.6.0",
30
30
  "color-support": "1.1.3",
31
- "commander": "12.0.0"
31
+ "commander": "^12.0.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@bablr/eslint-config-base": "github:bablr-lang/eslint-config-base#49f5952efed27f94ee9b94340eb1563c440bf64e",