Skip to content

Commit

Permalink
Change oniguruma links to v6.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCMD committed Nov 29, 2024
1 parent 3434f0a commit 96633df
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Highlights scope names with their own themed colour in realtime:
* [Github - TextMate](https://github.com/textmate/textmate)
* [Github - VSCode TextMate](https://github.com/microsoft/vscode-textmate)
* [Github - Oniguruma](https://github.com/kkos/oniguruma)
* [Github - Oniguruma: list of all expressions](https://github.com/kkos/oniguruma/blob/master/doc/RE)
* [Github - Oniguruma: list of all expressions](https://github.com/kkos/oniguruma/blob/v6.9.8/doc/RE)
* [Github - VSCode Oniguruma](https://github.com/microsoft/vscode-oniguruma)
* [Github - Unit testing](https://github.com/PanAeon/vscode-tmgrammar-test)
* [Github - TmLanguage-Syntax-Highlighter](https://github.com/RedCMD/TmLanguage-Syntax-Highlighter)
Expand Down
8 changes: 4 additions & 4 deletions documentation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ Todo: Explain basics of the `Package.json` in relation to TextMate syntaxes.
## Regex
VSCode TextMate uses the [oniguruma](https://github.com/kkos/oniguruma) dialect.
It used to use Ruby.
Here is a list of all valid regex [expressions](https://github.com/kkos/oniguruma/blob/master/doc/RE).
Here is a list of all valid regex [expressions](https://github.com/kkos/oniguruma/blob/v6.9.8/doc/RE).
[regex.tmLanguage.json](https://github.com/RedCMD/TmLanguage-Syntax-Highlighter/blob/main/syntaxes/regex.tmLanguage.json).
`\\K` [Keep](https://github.com/kkos/oniguruma/blob/master/doc/RE#L183) effectively moves the start position of the captured text.
`\\G` [MatchAnchor](https://github.com/kkos/oniguruma/blob/master/doc/RE#L182) matches against the end of a [begin](./rules.md#begin) rule.
`\\K` [Keep](https://github.com/kkos/oniguruma/blob/v6.9.8/doc/RE#L183) effectively moves the start position of the captured text.
`\\G` [MatchAnchor](https://github.com/kkos/oniguruma/blob/v6.9.8/doc/RE#L182) matches against the end of a [begin](./rules.md#begin) rule.
Capture groups inside a positive-lookaround can be targeted by [capture](rules.md#capture).
Capture groups inside a negative-lookaround will cause an error. Use non-capture group `(?:...)` instead.

Expand All @@ -55,7 +55,7 @@ Todo:
- https://gist.github.com/Aerijo/b8c82d647db783187804e86fa0a604a1
- https://gist.github.com/DamnedScholar/622926bcd222eb1ddc483d12103fd315
- https://github.com/mjbvz/vscode-fenced-code-block-grammar-injection-example
- https://github.com/kkos/oniguruma/blob/master/doc/RE
- https://github.com/kkos/oniguruma/blob/v6.9.8/doc/RE
- https://github.com/chbk/flight-manual.atom.io/blob/scopes/content/hacking-atom/sections/syntax-naming-conventions.md
- https://github.com/atom/flight-manual.atom.io/pull/564
- https://github.com/jeff-hykin/better-cpp-syntax/blob/master/documentation/library/textmate_while.md
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/HoverProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const HoverProvider: vscode.HoverProvider = {
switch (hoverCapture.name) {
case 'match':
markdownString.appendMarkdown('Regular Expression to match, (capture) and apply `scopeNames` to text \n');
markdownString.appendMarkdown('TextMate uses the [Oniguruma](https://github.com/kkos/oniguruma/blob/master/doc/RE) regex dialect \n');
markdownString.appendMarkdown('TextMate uses the [Oniguruma](https://github.com/kkos/oniguruma/blob/v6.9.8/doc/RE) regex dialect \n');
markdownString.appendCodeblock('Example: \\\\b(true|false)\\\\b', 'json-textmate-regex');
break;
case 'begin':
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/regex.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -1573,7 +1573,7 @@
},
"_disabled_": {
"comment": "Basic visual test",
"//": "https://github.com/kkos/oniguruma/blob/master/doc/RE",
"//": "https://github.com/kkos/oniguruma/blob/v6.9.8/doc/RE",
"patterns": [
{ "match": "(*FAIL) !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~ " },
{ "match": "(*FAIL) \"\/\b\f\n\r\t\u0000 " },
Expand Down

0 comments on commit 96633df

Please sign in to comment.