Skip to content

Commit

Permalink
fix(htmlAttribute): support single quotes as well (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Nov 22, 2023
1 parent ae4b101 commit bef7dd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/various-textobjs/charwise-textobjs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bef7dd6

Please sign in to comment.