Skip to content

Commit c616d20

Browse files
committed
feat: TRUE and FALSE are keywords in parser
1 parent e3b020c commit c616d20

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

argus-parser/src/lexer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,8 @@ pub fn lexer<'src>() -> impl Parser<'src, &'src str, Output<'src>, Error<'src>>
169169
let ident = text::ident().map(|ident: &str| match ident {
170170
"true" => Token::Bool(true),
171171
"false" => Token::Bool(false),
172+
"TRUE" => Token::Bool(true),
173+
"FALSE" => Token::Bool(false),
172174
"G" => Token::Always,
173175
"alw" => Token::Always,
174176
"always" => Token::Always,

0 commit comments

Comments
 (0)