Skip to content

Commit c971ded

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7b09582 commit c971ded

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

crates/djls-template-ast/grammar.ebnf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ TAG_END = "%}" ;
2323
COMMENT_START = "{#" ;
2424
COMMENT_END = "#}" ;
2525
26-
SPECIAL_SEQUENCE = VAR_START | VAR_END | TAG_START | TAG_END
26+
SPECIAL_SEQUENCE = VAR_START | VAR_END | TAG_START | TAG_END
2727
| COMMENT_START | COMMENT_END ;
2828
TEXT_CHAR = ANY_CHAR - SPECIAL_SEQUENCE ;
2929
TEXT = { TEXT_CHAR }+ ;

crates/djls-template-ast/src/error.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ use thiserror::Error;
99
pub enum TemplateError {
1010
#[error("Lexer error: {0}")]
1111
Lexer(String),
12-
12+
1313
#[error("Parser error: {0}")]
1414
Parser(String),
15-
15+
1616
#[error("Validation error: {0}")]
1717
Validation(#[from] AstError),
18-
18+
1919
#[error("IO error: {0}")]
2020
Io(String),
21-
21+
2222
#[error("Configuration error: {0}")]
2323
Config(String),
2424
}
@@ -50,7 +50,7 @@ impl TemplateError {
5050
_ => None,
5151
}
5252
}
53-
53+
5454
pub fn severity(&self) -> lsp_types::DiagnosticSeverity {
5555
match self {
5656
TemplateError::Lexer(_) | TemplateError::Parser(_) => {

0 commit comments

Comments
 (0)