Skip to content

Commit

Permalink
Readme tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
slevithan committed Dec 28, 2024
1 parent d147190 commit 7df3c55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -946,14 +946,14 @@ The table above doesn't include all aspects that Oniguruma-To-ES emulates (inclu

## ❌ Unsupported features

The following don't yet have any support, and throw errors. They're all infrequently-used features, with most being *extremely* rare. Note that Oniguruma-To-ES can handle ~99.9% of real-world Oniguruma regexes, based on patterns used in a large [collection](https://github.com/shikijs/textmate-grammars-themes/tree/main/packages/tm-grammars/grammars) of TextMate grammars.
The following don't yet have any support, and throw errors. They're all uncommonly-used features, with most being *extremely* rare. Note that Oniguruma-To-ES can handle 99.9+% of real-world Oniguruma regexes, based on a sample of tens of thousands of regexes used in TextMate grammars.

- Supportable:
- Grapheme boundaries: `\y`, `\Y`.
- Flags `P` (POSIX is ASCII) and `y{g}`/`y{w}` (grapheme boundary modes).
- Rarely-used character specifiers: Non-A-Za-z with `\cx`, `\C-x`; meta `\M-x`, `\M-\C-x`; bracketed octals `\o{…}`; octal UTF-8 encoded bytes (≥ `\200`).
- Code point sequences: `\x{H H …}`, `\o{O O …}`.
- Whole-pattern modifier: Don't capture `(?C)`.
- Whole-pattern modifier: Don't capture group `(?C)`.
- Supportable for some uses:
- Absence functions: `(?~…)`, etc.
- Conditionals: `(?(…)…)`, etc.
Expand Down
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h2>Try it</h2>
<label>
<input type="checkbox" id="flag-m" onchange="setFlag('m', this.checked)">
<kbd>m</kbd>
<span class="tip tip-sm"><code>dotAll</code> <small>(JS flag <kbd>s</kbd>)</small></span>
<span class="tip tip-md"><code>dotAll</code> (JS flag <kbd>s</kbd>)</span>
</label>
<label>
<input type="checkbox" id="flag-x" onchange="setFlag('x', this.checked)">
Expand Down

0 comments on commit 7df3c55

Please sign in to comment.