Skip to content

Commit 1c91a20

Browse files
committed
refactor(util): regex for finding reactive highlights
1 parent fa9b564 commit 1c91a20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/reactive/util.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ end
6464
---@param hl string
6565
---@boolean
6666
function M.is_reactive_hl(hl)
67-
return vim.fn.matchstr(hl, [[Reactive.*@\(mode\|static\.\)]]) ~= ''
67+
return vim.fn.matchstr(hl, [[^Reactive.*@preset\.]]) ~= ''
6868
end
6969

7070
--- Deeply merges two tables without index/numeric keys

0 commit comments

Comments
 (0)