Update grammar to parse inside style tags #1641
Annotations
7 errors
|
Run the unit tests:
packages/liquid-html-parser/src/grammar.spec.ts#L42
AssertionError: {% style %}{% endstyle %}: expected false to be true
- Expected
+ Received
- true
+ false
❯ packages/liquid-html-parser/src/grammar.spec.ts:42:62
❯ packages/liquid-html-parser/src/grammar.spec.ts:13:16
|
Run the unit tests:
packages/liquid-html-parser/src/stage-1-cst.spec.ts#L874
AssertionError: toLiquidHtmlCST(text): expected 'LiquidTagOpen' to equal 'LiquidRawTag'
Expected: "LiquidRawTag"
Received: "LiquidTagOpen"
❯ packages/liquid-html-parser/src/stage-1-cst.spec.ts:874:42
❯ packages/liquid-html-parser/src/stage-1-cst.spec.ts:871:26
|
Run the unit tests:
packages/liquid-html-parser/src/stage-1-cst.spec.ts#L896
AssertionError: toLiquidHtmlCST(text): expected 'LiquidTagOpen' to equal 'LiquidRawTag'
Expected: "LiquidRawTag"
Received: "LiquidTagOpen"
❯ packages/liquid-html-parser/src/stage-1-cst.spec.ts:896:42
❯ packages/liquid-html-parser/src/stage-1-cst.spec.ts:885:33
|
Run the unit tests:
packages/liquid-html-parser/src/stage-2-ast.spec.ts#L789
AssertionError: toLiquidHtmlAST(text): expected 'LiquidTag' to deeply equal 'LiquidRawTag'
Expected: "LiquidRawTag"
Received: "LiquidTag"
❯ packages/liquid-html-parser/src/stage-2-ast.spec.ts:789:49
|
Run the unit tests:
packages/theme-check-common/src/checks/liquid-html-syntax-error/index.spec.ts#L88
AssertionError: expected 'SyntaxError: expected "#", a letter, …' to equal 'SyntaxError: expected "#", a letter, …'
Expected: "SyntaxError: expected "#", a letter, "when", "sections", "section", "render", "liquid", "layout", "increment", "include", "elsif", "else", "echo", "decrement", "content_for", "cycle", "continue", "break", "assign", "tablerow", "unless", "if", "ifchanged", "for", "case", "capture", "paginate", "form", "end", "style", "stylesheet", "schema", "javascript", "raw", "comment", or "doc""
Received: "SyntaxError: expected "#", a letter, "when", "sections", "section", "render", "liquid", "layout", "increment", "include", "elsif", "else", "echo", "decrement", "content_for", "cycle", "continue", "break", "assign", "tablerow", "unless", "if", "ifchanged", "for", "case", "capture", "paginate", "style", "form", "end", "stylesheet", "schema", "javascript", "raw", "comment", or "doc""
❯ packages/theme-check-common/src/checks/liquid-html-syntax-error/index.spec.ts:88:36
|
Run the unit tests
The operation was canceled.
|
Loading