mirror of
https://github.com/danog/parser.git
synced 2024-11-27 04:14:55 +01:00
lexer: produce pipe tokens
This commit is contained in:
parent
13d0aa21cd
commit
9b82f360fa
@ -496,6 +496,11 @@ impl Lexer {
|
||||
TokenKind::Comment(buffer)
|
||||
}
|
||||
},
|
||||
'|' => {
|
||||
self.col += 1;
|
||||
// TODO: Handle boolean or || tokens.
|
||||
TokenKind::Pipe
|
||||
},
|
||||
'{' => {
|
||||
self.col += 1;
|
||||
TokenKind::LeftBrace
|
||||
|
@ -73,6 +73,7 @@ pub enum TokenKind {
|
||||
False,
|
||||
Use,
|
||||
If,
|
||||
Pipe,
|
||||
Implements,
|
||||
InlineHtml(String),
|
||||
Int(i64),
|
||||
|
Loading…
Reference in New Issue
Block a user