irongit

A Regex file extension that makes it way easier to edit large regex.

segment regex file highlights and target highlights match up

huncholanehuncholaneauthored
parent 061f71dcommit 98adb26efb5b3b29412334ea496e6cd859316be0Browse files

1 file changed, +1 -1

+1-1src/highlighter.ts
@@ -125,7 +125,7 @@ class Highlighter {
125125 }
126126
127127 matchRegexGroups(document: vscode.TextDocument) {
128- const re = /(?<=\()\?<.+?(?=\))/g;
128+ const re = /(?<=\(\?<).+?(?=\>)/g;
129129 const matches = document.getText().matchAll(re);
130130 let i = 0;
131131 const maxMatches = getConfig().get("maxMatches") as number;