diff --git a/CHANGELOG.md b/CHANGELOG.md index ad78173f..b38b52ea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +# 0.7.1 - 2026-08-06 + +## Added + +* Add the `fmt` cargo feature: a lossless lexer producing `FmtTokens` with comments, newlines, and whitespace (via `FmtToken` and `TriviaKind`, both `#[non_exhaustive]`) for formatter tooling. Preserves underscored digit spellings for round-tripping, attaches spans to more AST nodes. Regular lexing/parsing is unchanged and discards trivia. [#372](https://github.com/BlockstreamResearch/SimplicityHL/pull/372) + +## Changed + +* Lex whitespace in contiguous chunks rather than character-by-character. [#372](https://github.com/BlockstreamResearch/SimplicityHL/pull/372) + # 0.7.0 - 2026-07-27 ## Breaking Changes diff --git a/Cargo.lock b/Cargo.lock index 05eca1f6..6b026481 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -661,7 +661,7 @@ dependencies = [ [[package]] name = "simplicityhl" -version = "0.7.0" +version = "0.7.1" dependencies = [ "arbitrary", "ariadne", diff --git a/Cargo.toml b/Cargo.toml index 5d0b11ac..eb5e6de7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "simplicityhl" -version = "0.7.0" +version = "0.7.1" authors = ["sanket1729 "] license = "CC0-1.0" homepage = "https://github.com/BlockstreamResearch/SimplicityHL" diff --git a/src/lexer.rs b/src/lexer.rs index f71375a2..ffd15bee 100644 --- a/src/lexer.rs +++ b/src/lexer.rs @@ -15,7 +15,6 @@ pub type Tokens<'src> = Vec<(Token<'src>, crate::error::Span)>; pub type FmtTokens<'src> = Vec<(FmtToken<'src>, crate::error::Span)>; #[derive(Clone, Debug, PartialEq, Eq, Hash)] -#[non_exhaustive] pub enum Token<'src> { // Keywords Pub,