Skip to content

Commit

Permalink
feat: TRUE and FALSE are keywords in parser
Browse files Browse the repository at this point in the history
  • Loading branch information
anand-bala committed Oct 4, 2023
1 parent e3b020c commit c616d20
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions argus-parser/src/lexer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ pub fn lexer<'src>() -> impl Parser<'src, &'src str, Output<'src>, Error<'src>>
let ident = text::ident().map(|ident: &str| match ident {
"true" => Token::Bool(true),
"false" => Token::Bool(false),
"TRUE" => Token::Bool(true),
"FALSE" => Token::Bool(false),
"G" => Token::Always,
"alw" => Token::Always,
"always" => Token::Always,
Expand Down

0 comments on commit c616d20

Please sign in to comment.