Steven Levithan
Steven Levithan
> do you currently support all characters in `group names`? (as long as the first character is `_a-zA-Z`) eg. `(?b)\g` is valid onig [...] but `\k` is not valid Adding...
Thanks for breaking that down in detail! > must start with _a-zA-Z > [...] must start with a letter or underscore (non-ascii characters allowed) Neither of these seem right. E.g.,...
Thanks for looking. Yeah, I went down a similar rabbit hole (but I'm guessing you're more familiar with C than I am) and also ended up with "idk". 🤷🏻♂️ This...
I did some spot tests, and thought maybe I'd figured it out and it was equivalent to JS `/^[[\p{Alpha}\p{M}\p{Pc}\p{N}]--\d][^)]*$/v`. This was based on tests for first char that included the...
Regarding errors with importing, I'm assuming all of that is related to `oniguruma-parser` only providing ESM rather than CJS modules. And I've heard that VS Code extensions still only support...
> is there way to ignore errors? > > > Error: Not enough capturing groups defined to the left "\1" > > when optimizing a `end` regex, there can be...
PS if you're not already using it, you should also enable `rules.captureGroup` if the optimized regex will be used in a TM grammar, since `vscode-oniguruma` enables this option (`ONIG_OPTION_CAPTURE_GROUP`) by...
`rules.allowOrphanBackrefs` shipped in v0.7.0. 😊 Regarding the perf improvement from the lookahead, there are two potential reasons for this. Either: 1. The lookahead is able to quick-fail some target string...
> I gave `esbuild` a try but the js file isn't exporting its functions correctly I'm just gonna leave it for now Sorry this stuff is a hassle. There might...
> You should then be able to `require` your `oniguruma-optimizer-commonjs` package from any CJS project. Someone else just took this approach with my `regex-recursion` library. See https://github.com/slevithan/regex-recursion/pull/2. CJS wrapper: https://www.npmjs.com/package/regex-recursion-cjs