Fix parsing of single hex-digits.

This commit is contained in:
KtorZ
2024-05-30 17:19:48 +02:00
parent 5694d9f9cb
commit 649e5163fc
4 changed files with 29 additions and 1 deletions

View File

@@ -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| {