diff --git a/src/parser.ts b/src/parser.ts index 05f92b6..8c26355 100644 --- a/src/parser.ts +++ b/src/parser.ts @@ -7,8 +7,6 @@ import { Statement, Block, nonClosingStatements, - Expression, - IgnoreBlock, } from "./jinja"; const regex = diff --git a/test/cases/empty/expected.html b/test/cases/empty/expected.html new file mode 100644 index 0000000..e69de29 diff --git a/test/cases/empty/input.html b/test/cases/empty/input.html new file mode 100644 index 0000000..e69de29 diff --git a/test/cases/statement_broken_3/expected.html b/test/cases/statement_broken_3/expected.html new file mode 100644 index 0000000..f124eca --- /dev/null +++ b/test/cases/statement_broken_3/expected.html @@ -0,0 +1 @@ +Error('Closung statement "endif" doesn't match Opening Statement "for item in seq".') diff --git a/test/cases/statement_broken_3/input.html b/test/cases/statement_broken_3/input.html new file mode 100644 index 0000000..a97e924 --- /dev/null +++ b/test/cases/statement_broken_3/input.html @@ -0,0 +1,5 @@ + \ No newline at end of file