A Regex file extension that makes it way easier to edit large regex.
segment regex file highlights and target highlights match up
1 file changed, +1 -1
+1-1src/highlighter.ts
| @@ -125,7 +125,7 @@ class Highlighter { | ||
| 125 | 125 | } |
| 126 | 126 | |
| 127 | 127 | matchRegexGroups(document: vscode.TextDocument) { |
| 128 | - const re = /(?<=\()\?<.+?(?=\))/g; | |
| 128 | + const re = /(?<=\(\?<).+?(?=\>)/g; | |
| 129 | 129 | const matches = document.getText().matchAll(re); |
| 130 | 130 | let i = 0; |
| 131 | 131 | const maxMatches = getConfig().get("maxMatches") as number; |