Implement escaping
This commit is contained in:
parent
0d910634c6
commit
c6b43b2c48
4 changed files with 18 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ use crate::{
|
|||
Inline, context,
|
||||
lexeme::Lexeme,
|
||||
state::{AnchorBuffer, State},
|
||||
token::{Token, anchor::Anchor, code::Code},
|
||||
token::{Token, anchor::Anchor, code::Code, literal::Literal},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -48,6 +48,9 @@ pub fn parse(
|
|||
state.context.inline = Inline::None;
|
||||
tokens.push(Token::Code(Code::new(false)));
|
||||
return true;
|
||||
} else {
|
||||
tokens.push(Token::Literal(Literal::lex(lexeme)));
|
||||
return true;
|
||||
}
|
||||
},
|
||||
Inline::Anchor => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue