clarity-pattern-parser 9.2.2 → 9.2.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clarity-pattern-parser",
3
- "version": "9.2.2",
3
+ "version": "9.2.3",
4
4
  "description": "Parsing Library for Typescript and Javascript.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.esm.js",
@@ -380,7 +380,9 @@ describe("Grammar", () => {
380
380
  `;
381
381
  const expression = `
382
382
  import { first-name } from "first-name.cpat"
383
- import { space } from "space.cpat" with params { custom-space = " " }
383
+ import { space } from "space.cpat" with params {
384
+ custom-space = " "
385
+ }
384
386
  last-name = "Doe"
385
387
  full-name = first-name + space + last-name
386
388
  `;
@@ -8,7 +8,8 @@ import { Optional } from "../../patterns/Optional";
8
8
 
9
9
  const bodyLineContent = new Options("body-line-content", [
10
10
  comment,
11
- statement
11
+ statement,
12
+ lineSpaces
12
13
  ]);
13
14
 
14
15
  const optionalLineSpaces = new Optional("optional-line-spaces", lineSpaces);
@@ -19,4 +20,4 @@ const bodyLine = new Sequence("body-line", [
19
20
  optionalLineSpaces,
20
21
  ]);
21
22
 
22
- export const body = new Optional("optional-body", new Repeat("body", bodyLine, {divider: newLine}));
23
+ export const body = new Optional("optional-body", new Repeat("body", bodyLine, { divider: newLine }));
@@ -28,7 +28,7 @@ describe("Patterns String Template Literal", ()=>{
28
28
  debugger;
29
29
  const result = body.exec(`
30
30
  <div>
31
- <div></div>
31
+ <span></span>
32
32
  <div></div>
33
33
  </div>
34
34
  `, true);