From 54befc03849db2edfde833556eaa8adeea2fa35b Mon Sep 17 00:00:00 2001 From: Josh Date: Fri, 13 Dec 2024 00:38:48 -0600 Subject: [PATCH] remove lines, add note about full test being disabled --- crates/djls-ast/src/lexer.rs | 7 ------- crates/djls-ast/src/parser.rs | 2 -- 2 files changed, 9 deletions(-) diff --git a/crates/djls-ast/src/lexer.rs b/crates/djls-ast/src/lexer.rs index 83b55b8..9e1efa2 100644 --- a/crates/djls-ast/src/lexer.rs +++ b/crates/djls-ast/src/lexer.rs @@ -256,25 +256,18 @@ impl Lexer { pub enum LexerError { #[error("empty token at line {0}")] EmptyToken(usize), - #[error("unexpected character '{0}' at line {1}")] UnexpectedCharacter(char, usize), - #[error("unexpected end of input")] UnexpectedEndOfInput, - #[error("source is empty")] EmptySource, - #[error("at beginning of source")] AtBeginningOfSource, - #[error("at end of source")] AtEndOfSource, - #[error("invalid character access")] InvalidCharacterAccess, - #[error("unexpected token type '{0:?}'")] UnexpectedTokenType(TokenType), } diff --git a/crates/djls-ast/src/parser.rs b/crates/djls-ast/src/parser.rs index 40b2103..07e17c3 100644 --- a/crates/djls-ast/src/parser.rs +++ b/crates/djls-ast/src/parser.rs @@ -639,8 +639,6 @@ mod tests { insta::assert_yaml_snapshot!(ast); } - // hangs for some reason - #[test] fn test_parse_full() { let source = r#"