diff --git a/lua/various-textobjs/charwise-textobjs.lua b/lua/various-textobjs/charwise-textobjs.lua index 1b2394a..10a0eff 100644 --- a/lua/various-textobjs/charwise-textobjs.lua +++ b/lua/various-textobjs/charwise-textobjs.lua @@ -306,7 +306,7 @@ end ---@param scope "inner"|"outer" inner selector is only the value of the attribute inside the quotation marks. ---@param lookForwL integer number of lines to look forward for the textobj function M.htmlAttribute(scope, lookForwL) - local pattern = '(%w+=").-(")' + local pattern = [[(%w+=["']).-(["'])]] searchTextobj(pattern, scope, lookForwL) end