File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 3
3
## Unreleased
4
4
<!-- Add all new changes here. They will be moved under a version at release -->
5
5
* ` FIX ` Fixed an issue preventing to set the locale to Japanese
6
+ * ` FIX ` Preserve newlines between function comment and @see
6
7
* ` FIX ` Accept storagePath option from client to resolve addon directory not found
7
8
8
9
## 3.11.0
Original file line number Diff line number Diff line change @@ -336,7 +336,7 @@ local function tryDocFieldComment(source)
336
336
end
337
337
end
338
338
339
- local function getFunctionComment (source , raw )
339
+ local function getFunctionCommentMarkdown (source , raw )
340
340
local docGroup = source .bindDocs
341
341
if not docGroup then
342
342
return
@@ -393,11 +393,7 @@ local function getFunctionComment(source, raw)
393
393
local enums = getBindEnums (source , docGroup )
394
394
md :add (' lua' , enums )
395
395
396
- local comment = md :string ()
397
- if comment == ' ' then
398
- return nil
399
- end
400
- return comment
396
+ return md
401
397
end
402
398
403
399
--- @async
@@ -407,8 +403,7 @@ local function tryDocComment(source, raw)
407
403
source = source .value
408
404
end
409
405
if source .type == ' function' then
410
- local comment = getFunctionComment (source , raw )
411
- md :add (' md' , comment )
406
+ md :add (' md' , getFunctionCommentMarkdown (source , raw ))
412
407
source = source .parent
413
408
end
414
409
local comment = lookUpDocComments (source )
You can’t perform that action at this time.
0 commit comments