Codebase list lua-ldoc / 1bcd76e
new flag: -N,--no_args_infer don't infer arguments from source Steve Donovan 7 years ago
2 changed file(s) with 10 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
224224 return nil
225225 end
226226 end
227 if lang.parse_module_call and t ~= 'comment'then
227 if lang.parse_module_call and t ~= 'comment' then
228228 while t and not (t == 'iden' and v == 'module') do
229229 t,v = tnext(tok)
230230 end
313313 tags:add('class','function')
314314 end
315315 item_follows, is_local = false, false
316 elseif lang:is_module_modifier (tags) then
316 elseif args.no_args_infer then
317 F:error("No name and type provided (no_args_infer)")
318 elseif lang:is_module_modifier (tags) then
317319 if not item_follows then
318320 F:warning("@usage or @export followed by unknown code")
319321 break
5757 -X,--not_luadoc break LuaDoc compatibility. Descriptions may continue after tags.
5858 -D,--define (default none) set a flag to be used in config.ld
5959 -C,--colon use colon style
60 -N,--no_args_infer don't infer arguments from source
6061 -B,--boilerplate ignore first comment in source files
6162 -M,--merge allow module merging
6263 -S,--simple no return or params, no summary
6768 --tags (default none) show all references to given tags, comma-separated
6869 --fatalwarnings non-zero exit status on any warning
6970 --testing reproducible build; no date or version on output
70
71
7172 <file> (string) source file or directory containing source
7273
7374 `ldoc .` reads options from an `config.ld` file in same directory;
238239 'unqualified', 'custom_display_name_handler', 'kind_names', 'custom_references',
239240 'dont_escape_underscore','global_lookup','prettify_files','convert_opt', 'user_keywords',
240241 'postprocess_html',
241 'custom_css','version'
242 'custom_css','version',
243 'no_args_infer'
242244 }
243245 ldoc_contents = tablex.makeset(ldoc_contents)
244246
423425
424426 setup_package_base()
425427
428 override 'no_args_infer'
426429 override 'colon'
427430 override 'merge'
428431 override 'not_luadoc'
809812 local source_date_epoch = os.getenv("SOURCE_DATE_EPOCH")
810813 if args.testing then
811814 ldoc.updatetime = "2015-01-01 12:00:00"
812 ldoc.version = 'TESTING'
815 ldoc.version = 'TESTING'
813816 elseif source_date_epoch == nil then
814817 if args.date == 'system' then
815818 ldoc.updatetime = os.date("%Y-%m-%d %H:%M:%S")