Skip to content

feat(rg): add engine and mmap flags - #1661

Merged
chaliy merged 1 commit into
mainfrom
2026-05-22-rg-engine-mmap
May 22, 2026
Merged

chaliy merged 1 commit into
mainfrom
2026-05-22-rg-engine-mmap

Conversation

@chaliy

@chaliy chaliy commented May 22, 2026

Copy link
Copy Markdown
Contributor

What

Add rg parser/help/docs support for regex engine and mmap control flags: -P/--pcre2, --no-pcre2, --engine, --auto-hybrid-regex, --no-auto-hybrid-regex, --mmap, and --no-mmap.

Why

These are common real ripgrep flags. For simple searches they should be accepted and match real rg output instead of failing as unknown options.

How

Treat engine and mmap controls as execution-strategy no-ops for the currently supported regex path, validate --engine values, add -P combined short parsing, and expand real-rg differential cases.

Risk

  • Low
  • Regex engine flags are no-ops for now, so PCRE2-only pattern features still are not implemented.

Checklist

  • Tests added or updated
  • Backward compatibility considered

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
bashkit 3d51c90 Commit Preview URL May 22 2026, 06:57 AM

@chaliy
chaliy merged commit 55f6a04 into main May 22, 2026
34 checks passed
@chaliy
chaliy deleted the 2026-05-22-rg-engine-mmap branch May 22, 2026 07:09
chaliy added a commit that referenced this pull request May 30, 2026
## What
Add rg parser/help/docs support for regex engine and mmap control flags:
-P/--pcre2, --no-pcre2, --engine, --auto-hybrid-regex,
--no-auto-hybrid-regex, --mmap, and --no-mmap.

## Why
These are common real ripgrep flags. For simple searches they should be
accepted and match real rg output instead of failing as unknown options.

## How
Treat engine and mmap controls as execution-strategy no-ops for the
currently supported regex path, validate --engine values, add -P
combined short parsing, and expand real-rg differential cases.

## Risk
- Low
- Regex engine flags are no-ops for now, so PCRE2-only pattern features
still are not implemented.

## Checklist
- [x] Tests added or updated
- [x] Backward compatibility considered
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant