File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ TAG_END = "%}" ;
2323COMMENT_START = " {#" ;
2424COMMENT_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 ;
2828TEXT_CHAR = ANY_CHAR - SPECIAL_SEQUENCE ;
2929TEXT = { TEXT_CHAR }+ ;
Original file line number Diff line number Diff line change @@ -9,16 +9,16 @@ use thiserror::Error;
99pub 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 ( _) => {
You can’t perform that action at this time.
0 commit comments