Skip to content

Commit 5d36ba1

Browse files
committed
Render strings correctly in exported enum doc comments
1 parent d9da18a commit 5d36ba1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/core/hover/description.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ local function tryDocEnum(source)
507507
end
508508
if field.value.type == 'integer'
509509
or field.value.type == 'string' then
510-
md:add('lua', (' %s: %s = %s,'):format(key, field.value.type, field.value[1]))
510+
md:add('lua', (' %s: %s = %q,'):format(key, field.value.type, field.value[1]))
511511
end
512512
if field.value.type == 'binary'
513513
or field.value.type == 'unary' then

0 commit comments

Comments
 (0)