We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c501b42 commit 025520dCopy full SHA for 025520d
lua/lazy/util.lua
@@ -237,14 +237,20 @@ function M._dump(value, result)
237
table.insert(result, tostring(value))
238
elseif t == "string" then
239
table.insert(result, ("%q"):format(value))
240
+ elseif t == "table" and value._raw then
241
+ table.insert(result, value._raw)
242
elseif t == "table" then
243
table.insert(result, "{")
244
local i = 1
245
---@diagnostic disable-next-line: no-unknown
246
for k, v in pairs(value) do
247
if k == i then
248
elseif type(k) == "string" then
- table.insert(result, ("[%q]="):format(k))
249
+ if k:match("^[a-zA-Z]+$") then
250
+ table.insert(result, ("%s="):format(k))
251
+ else
252
+ table.insert(result, ("[%q]="):format(k))
253
+ end
254
else
255
table.insert(result, k .. "=")
256
end
0 commit comments