Implement bold token

This commit is contained in:
Juno Takano 2026-01-06 18:16:55 -03:00
commit 1faa0d5c3b
6 changed files with 84 additions and 11 deletions

View file

@ -8,7 +8,7 @@ pub struct Item {
impl Parseable for Item {
fn probe(lexeme: &Lexeme) -> bool {
(lexeme.match_as_char('-') || lexeme.match_as_char('+'))
&& lexeme.match_next_as_char(' ')
&& lexeme.match_next_as_char(' ')
}
fn lex(_lexeme: &Lexeme) -> Item {