config: improve link matching for URLs ending in . or )

Fixes #1098
This commit is contained in:
Caleb Spare
2023-12-16 16:54:06 -08:00
parent fd80889f9a
commit ae94af37c0
2 changed files with 61 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ pub const Highlight = union(enum) {
pub fn oniRegex(self: *const Link) !oni.Regex {
return try oni.Regex.init(
self.regex,
.{},
.{ .find_longest = true },
oni.Encoding.utf8,
oni.Syntax.default,
null,