From 92ecfcb83cd2ec4b8fe91b0a41fdc2f24d39965c Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 4 Jan 2025 19:40:40 -0600 Subject: [PATCH] add test for error recovery --- crates/djls-template-ast/src/parser.rs | 29 +++++++++-- ...__tests__errors__parse_error_recovery.snap | 50 +++++++++++++++++++ ...__tests__errors__parse_unclosed_style.snap | 7 +++ 3 files changed, 83 insertions(+), 3 deletions(-) create mode 100644 crates/djls-template-ast/src/snapshots/djls_template_ast__parser__tests__errors__parse_error_recovery.snap create mode 100644 crates/djls-template-ast/src/snapshots/djls_template_ast__parser__tests__errors__parse_unclosed_style.snap diff --git a/crates/djls-template-ast/src/parser.rs b/crates/djls-template-ast/src/parser.rs index 7e8334d..a31fbb8 100644 --- a/crates/djls-template-ast/src/parser.rs +++ b/crates/djls-template-ast/src/parser.rs @@ -736,9 +736,32 @@ mod tests { let source = "