Skip to content

Releases: ahrefs/ppx_regexp

0.6.6

18 Sep 21:46
51d4ceb
Compare
Choose a tag to compare

Simplified error location logic and fixed some issues with it for the type ... = {%mikmatch| ... |} expansion

0.6.5

18 Sep 13:24
753bc60
Compare
Choose a tag to compare

What's Changed

  • type ... = {%mikmatch| ... |} extension by @zazedd in #7

Full Changelog: v0.6.4...v0.6.5

0.6.4

14 Sep 18:25
Compare
Choose a tag to compare

Name changed. ppx_regexp_extended -> ppx_mikmatch

0.6.3

27 Aug 01:57
4452594
Compare
Choose a tag to compare

QOL updates, for both the user and developer

  • unit tests for mikmatch
  • fixing unit tests for Regexp lib and adding compilation flag tests
  • added warning when let destructuring: alternations are not allowed if they create different variables in different branches.
    • this would not have produced good code
    • the pattern should be: one variable capture for whole alternation

0.6.2

22 Aug 18:19
2de0807
Compare
Choose a tag to compare

Fixing handler order

0.6.1

20 Aug 22:45
4f78685
Compare
Choose a tag to compare

Bug Fix

  • let destructuring was using the wrong groups if inside the RE you were to define more groups than the variable capture ones

Full Changelog: v0.6.0...v0.6.1

0.6.0

20 Aug 16:28
b2df586
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.5.9...v0.6.0

0.5.9

08 Aug 16:49
3c13d68
Compare
Choose a tag to compare

Updates

  • Optimized code generation for default rhs
  • Improvements to variable subst code
  • Fixing issue where too much memory would be allocated for the mixed match case
  • Pre-fix for pattern guard issue relating to how ocaml-re runs Marks

Known Issues

function%mikmatch
| {|/ regex1 /|} where something (* evaluates to false *) -> rhs1
| {|/ regex2 /|} -> rhs2
| _ -> rhs3

Where regex1 and regex2 intersect (for example 'a'+ 'b' and 'a' 'b'+ where the input string is "ab"). One would expect rhs2 to run, however due to how marking works (it only marks the first successful match and doesn't search forward), rhs3 actually runs. A warning was added to the README.

0.5.8

29 Jul 14:56
1e11d4d
Compare
Choose a tag to compare
  • Removed %miksearch and %pcres
  • Restored default anchoring (no anchoring) for %pcre
  • %mikmatch always anchored at start (^) and end ($)

0.5.7

22 Jul 10:02
ec834d6
Compare
Choose a tag to compare

Changes

  • %mik -> %mikmatch
  • %miks -> %miksearch