diff --git a/src/syntax/content.rs b/src/syntax/content.rs index 1f912a6..1f69727 100644 --- a/src/syntax/content.rs +++ b/src/syntax/content.rs @@ -15,8 +15,5 @@ type Lexer = fn(&Lexeme) -> Token; type LexMap<'lm> = &'lm [(Probe, Lexer)]; pub fn parse(text: &str, config: &Config) -> String { - if text.is_empty() { - return String::new(); - } parser::read(text, config) }