ldoc icon indicating copy to clipboard operation
ldoc copied to clipboard

[SOLVED] Using Multiple "module" in Single File

Open AntumDeluge opened this issue 5 years ago • 1 comments

I'm putting all documentation into a separate file. Is it possible to use the @module/@script/@file tags multiple times in a single file? Something like @section end would be nice.

SOLVED: By commenting out the following lines in ldoc/parse.lua I was able to achieve the behavior that I wanted:

if module_item then
  F:error("Module already declared!")
end

Going to leave this open for now in case someone finds it helpful.

AntumDeluge avatar Jul 26 '18 05:07 AntumDeluge

@AntumDeluge I had same problem, and I also comment the F:error

esrrhs avatar May 25 '21 03:05 esrrhs