Skip to content

Commit

Permalink
tag -> literal
Browse files Browse the repository at this point in the history
  • Loading branch information
sthiele committed Feb 20, 2024
1 parent b766faf commit 7b594b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/primitive_literals.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use winnow::{
combinator::{alt, opt},
error::{ErrorKind, FromExternalError, ParserError},
token::{one_of, tag, take_while},
token::{literal, one_of, take_while},
PResult, Parser,
};

Expand Down Expand Up @@ -169,7 +169,7 @@ fn is_identifier_rest(c: char) -> bool {
}

pub fn bool_literal<'a, E: ParserError<&'a str>>(input: &mut &'a str) -> PResult<bool, E> {
alt((tag("true").value(true), tag("false").value(false))).parse_next(input)
alt((literal("true").value(true), literal("false").value(false))).parse_next(input)
}

pub fn int_literal<'a, E: ParserError<&'a str>>(input: &mut &'a str) -> PResult<i128, E>
Expand Down

0 comments on commit 7b594b5

Please sign in to comment.