Skip to content

Commit

Permalink
Revert "fix(highlight): match to the end of length #matched (#288)"
Browse files Browse the repository at this point in the history
This reverts commit a40fa7e.
  • Loading branch information
folke committed Jul 6, 2024
1 parent d0d7239 commit 0954987
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/todo-comments/highlight.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0954987

Please sign in to comment.