Expect a newline after PreFormat lexemes
This commit is contained in:
parent
6aa6b596f6
commit
95b437b3ac
1 changed files with 1 additions and 7 deletions
|
|
@ -15,13 +15,7 @@ impl PreFormat {
|
|||
|
||||
impl Parseable for PreFormat {
|
||||
fn probe(lexeme: &Lexeme) -> bool {
|
||||
let chars = lexeme.split_chars();
|
||||
|
||||
if let Some(first_char) = chars.first() {
|
||||
*first_char == '`'
|
||||
} else {
|
||||
false
|
||||
}
|
||||
lexeme.match_first_char('`') && lexeme.next == "\n"
|
||||
}
|
||||
|
||||
fn lex(_lexeme: &Lexeme) -> PreFormat {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue