Skip to content

Commit ba1ddbc

Browse files
committed
Render strings correctly in exported enum doc comments
1 parent 2473d74 commit ba1ddbc

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
@@ -511,7 +511,7 @@ local function tryDocEnum(source)
511511
end
512512
if field.value.type == 'integer'
513513
or field.value.type == 'string' then
514-
md:add('lua', (' %s: %s = %s,'):format(key, field.value.type, field.value[1]))
514+
md:add('lua', (' %s: %s = %q,'):format(key, field.value.type, field.value[1]))
515515
end
516516
if field.value.type == 'binary'
517517
or field.value.type == 'unary' then

0 commit comments

Comments
 (0)