diff --git a/Basalt/libraries/xmlParser.lua b/Basalt/libraries/xmlParser.lua index b8f7c79..9c13752 100644 --- a/Basalt/libraries/xmlParser.lua +++ b/Basalt/libraries/xmlParser.lua @@ -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)