From 0954987abb46e89e857278465039264b87890060 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Sat, 6 Jul 2024 17:36:11 +0200 Subject: [PATCH] Revert "fix(highlight): match to the end of length `#matched` (#288)" This reverts commit a40fa7e421a0c363f65db204f5f0ac075d3a8967. --- lua/todo-comments/highlight.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/todo-comments/highlight.lua b/lua/todo-comments/highlight.lua index 2371767..85bd52e 100644 --- a/lua/todo-comments/highlight.lua +++ b/lua/todo-comments/highlight.lua @@ -49,7 +49,7 @@ function M.match(str, patterns) local matched = m[1] local kw_only = m[2] local start = str:find(matched, 1, true) - return start, start + #matched, kw_only + return start, start + #matched - 1, kw_only end end end