Fix unbalanced anchor tags
This commit is contained in:
parent
dfa835178f
commit
cb24837ff0
6 changed files with 88 additions and 26 deletions
|
|
@ -2,12 +2,12 @@ use crate::{
|
|||
syntax::content::{Parseable, parser::lexeme::Lexeme},
|
||||
};
|
||||
|
||||
#[derive(Debug, Clone, Eq, PartialEq)]
|
||||
#[derive(Default, Debug, Clone, Eq, PartialEq)]
|
||||
pub struct LineBreak {}
|
||||
|
||||
impl Parseable for LineBreak {
|
||||
fn probe(lexeme: &Lexeme) -> bool {
|
||||
lexeme.text() == "\n"
|
||||
lexeme.text() == "\n" && !lexeme.last()
|
||||
}
|
||||
|
||||
fn lex(_lexeme: &Lexeme) -> LineBreak {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue