lexer: produce pipe tokens

This commit is contained in:
Ryan Chandler 2022-07-23 15:53:15 +01:00
parent 13d0aa21cd
commit 9b82f360fa
No known key found for this signature in database
GPG Key ID: F113BCADDB3B0CCA
2 changed files with 6 additions and 0 deletions

View File

@ -496,6 +496,11 @@ impl Lexer {
TokenKind::Comment(buffer)
}
},
'|' => {
self.col += 1;
// TODO: Handle boolean or || tokens.
TokenKind::Pipe
},
'{' => {
self.col += 1;
TokenKind::LeftBrace

View File

@ -73,6 +73,7 @@ pub enum TokenKind {
False,
Use,
If,
Pipe,
Implements,
InlineHtml(String),
Int(i64),