Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Aloso committed Aug 3, 2022
1 parent 0ed11d0 commit 0e7e494
Show file tree
Hide file tree
Showing 6 changed files with 79 additions and 14 deletions.
70 changes: 67 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,69 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.6.0] - 2022-08-03

### Added

- `^` and `$` as aliases for `Start` and `End`

- Leading pipes. This allows you to format expressions more beautifully:

```pomsky
| 'Lorem'
| :group(
| 'ipsum'
| 'dolor'
| 'sit'
| 'amet'
)
| 'consetetur'
```

- Improved diagnostics for typos. When you spell a variable, capturing group or character class
wrong, pomsky will suggest the correct spelling:

```
$ pomsky '[Alpabetic]'
error:
× Unknown character class `Alpabetic`
╭────
1 │ [Alpabetic]
· ────┬────
· ╰── error occurred here
╰────
help: Perhaps you meant `Alphabetic`
```

- Many regex syntax diagnostics were added. Pomsky now recognizes most regex syntax and suggests
the equivalent pomsky syntax. For example:

```
$ pomsky '(?<grp> "test")'
error:
× This syntax is not supported
╭────
1 │ (?<grp> "test")
· ───┬───
· ╰── error occurred here
╰────
help: Named capturing groups use the `:name(...)` syntax. Try `:grp(...)` instead
```

### Changed

- A plus directly after a repetition (e.g. `'a'{2}+`) is now **forbidden**. Fix it by adding
parentheses: `('a'{2})+`

The reason is that this syntax is used by regular expressions for possessive quantifiers.
Forbidding this syntax in pomsky allows for better diagnostics.

- Deprecated `[.]`, `[codepoint]` and `[cp]`. They should have been deprecated before, but the
warnings were missed in the previous release.

- Pomsky now sometimes reports multiple errors at once. The number of errors is limited to 8 in the
CLI.

## [0.5.0] - 2022-07-04

This is the first release since [Rulex was renamed to Pomsky](https://pomsky-lang.org/blog/renaming-rulex/).
Expand All @@ -19,8 +82,8 @@ rm $(type -P rulex)

### Added

- Deprecation warnings for `<%`, `%>`, `[codepoint]`, `[cp]` and `[.]`. These were deprecated
before, but Pomsky wasn't able to show warnings until now.
- Deprecation warnings for `<%` and `%>`. These were deprecated before, but Pomsky wasn't able
to show warnings until now.

### Changed

Expand Down Expand Up @@ -213,7 +276,8 @@ The repository was moved to its own organization! 🎉 It also has a new website

Initial release

[unreleased]: https://github.com/rulex-rs/pomsky/compare/v0.5...HEAD
[unreleased]: https://github.com/rulex-rs/pomsky/compare/v0.6...HEAD
[0.6.0]: https://github.com/rulex-rs/pomsky/compare/v0.5...v0.6
[0.5.0]: https://github.com/rulex-rs/pomsky/compare/v0.4.3...v0.5
[0.4.3]: https://github.com/rulex-rs/pomsky/compare/v0.4.2...v0.4.3
[0.4.2]: https://github.com/rulex-rs/pomsky/compare/v0.4.1...v0.4.2
Expand Down
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions benchmark/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[package]
name = "benchmark"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
publish = false

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
pomsky = { version = "0.5.0", path = "../pomsky-lib" }
pomsky = { version = "0.6.0", path = "../pomsky-lib" }
criterion = { git = "https://github.com/bheisler/criterion.rs", branch = "version-0.4" }
melody_compiler = "0.18.1"

Expand Down
4 changes: 2 additions & 2 deletions pomsky-bin/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pomsky-bin"
description = "Compile pomsky expressions, a new regular expression language"
version = "0.5.0"
version = "0.6.0"
edition = "2021"
authors = ["Ludwig Stecher <[email protected]>"]
license = "MIT OR Apache-2.0"
Expand All @@ -28,7 +28,7 @@ version = "4.7.1"
features = ["fancy-no-backtrace"]

[dependencies.pomsky]
version = "0.5.0"
version = "0.6.0"
path = "../pomsky-lib"
features = ["dbg", "miette", "suggestions"]

Expand Down
2 changes: 1 addition & 1 deletion pomsky-lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pomsky"
description = "A new regular expression language"
version = "0.5.0"
version = "0.6.0"
edition = "2021"
authors = ["Ludwig Stecher <[email protected]>"]
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions pomsky-macro/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "pomsky-macro"
description = "Macro for converting pomsky expressions to regexes"
version = "0.5.0"
version = "0.6.0"
edition = "2021"
authors = ["Ludwig Stecher <[email protected]>"]
license = "MIT OR Apache-2.0"
Expand All @@ -19,4 +19,4 @@ default = []
diagnostics = []

[dependencies]
pomsky = { version = "0.5.0", path = "../pomsky-lib" }
pomsky = { version = "0.6.0", path = "../pomsky-lib" }

0 comments on commit 0e7e494

Please sign in to comment.