Fix parsing of single hex-digits.
This commit is contained in:
@@ -112,7 +112,7 @@ pub fn lexer() -> impl Parser<char, Vec<(Token, Span)>, Error = ParseError> {
|
||||
.ignore_then(
|
||||
one_of("0123456789abcdefABCDEF")
|
||||
.repeated()
|
||||
.at_least(2)
|
||||
.at_least(1)
|
||||
.collect::<String>(),
|
||||
)
|
||||
.validate(|value: String, span, emit| {
|
||||
|
||||
Reference in New Issue
Block a user