|
| 1 | +TBD |
| 2 | +=== |
| 3 | +This release includes a ground-up rewrite of the regex-syntax crate, which has |
| 4 | +been in development for over a year. |
| 5 | + |
| 6 | +New features: |
| 7 | + |
| 8 | +* Error messages for invalid regexes have been greatly improved. You get these |
| 9 | + automatically; you don't need to do anything. In addition to better |
| 10 | + formatting, error messages will now explicitly call out the use of look |
| 11 | + around. When regex 1.0 is released, this will happen for backreferences as |
| 12 | + well. |
| 13 | +* Full support for intersection, difference and symmetric difference of |
| 14 | + character classes. These can be used via the `&&`, `--` and `~~` binary |
| 15 | + operators within classes. |
| 16 | +* A Unicode Level 1 conformat implementation of `\p{..}` character classes. |
| 17 | + Things like `\p{scx:Hira}`, `\p{age:3.2}` or `\p{Changes_When_Casefolded}` |
| 18 | + now work. All property name and value aliases are supported, and properties |
| 19 | + are selected via loose matching. e.g., `\p{Greek}` is the same as |
| 20 | + `\p{G r E e K}`. |
| 21 | +* A new `UNICODE.md` document has been added to this repository that |
| 22 | + exhaustively documents support for UTS#18. |
| 23 | +* Empty sub-expressions are now permitted in most places. That is, `()+` is |
| 24 | + now a valid regex. |
| 25 | +* Almost everything in regex-syntax now uses constant stack space, even when |
| 26 | + performing anaylsis that requires structural induction. This reduces the risk |
| 27 | + of a user provided regular expression causing a stack overflow. |
| 28 | +* [FEATURE #174](https://github.com/rust-lang/regex/issues/174): |
| 29 | + The `Ast` type in `regex-syntax` now contains span information. |
| 30 | +* [FEATURE #424](https://github.com/rust-lang/regex/issues/424): |
| 31 | + Support `\u`, `\u{...}`, `\U` and `\U{...}` syntax for specifying code points |
| 32 | + in a regular expression. |
| 33 | + |
| 34 | + |
1 | 35 | 0.2.6 (2018-02-08)
|
2 | 36 | ==================
|
3 | 37 | Bug fixes:
|
|
0 commit comments