Clarify comments

This commit is contained in:
Sabine Lim
2023-05-16 21:16:35 +10:00
parent 84f32c91a4
commit 4b029c9728

View File

@@ -28,11 +28,11 @@ local XMLNode = {
}
local parseAttributes = function(node, s)
-- Parse "" style attributes
-- Parse "" style string attributes
local _, _ = string.gsub(s, "(%w+)=([\"'])(.-)%2", function(attribute, _, value)
node:addAttribute(attribute, "\"" .. value .. "\"")
end)
-- Parse {} style attributes
-- Parse {} style computed attributes
local _, _ = string.gsub(s, "(%w+)={(.-)}", function(attribute, expression)
node:addAttribute(attribute, expression)
end)