Add lexeme 'first' field, refactor and add methods

This commit is contained in:
Juno Takano 2026-01-09 19:39:44 -03:00
commit c53afefb67
9 changed files with 98 additions and 50 deletions

View file

@ -15,7 +15,7 @@ impl Underline {
impl Parseable for Underline {
fn probe(lexeme: &Lexeme) -> bool {
lexeme.match_as_char('_') && lexeme.match_next_as_char('_')
lexeme.match_char('_') && lexeme.match_next_char('_')
}
fn lex(_lexeme: &Lexeme) -> Underline {