Codebase list lua-ldoc / 088034e
Merge pull request #243 from mpeterv/fix-module-call-parse Fix module call parse Steve J Donovan authored 7 years ago GitHub committed 7 years ago
1 changed file(s) with 8 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
230230 end
231231 end
232232 if lang.parse_module_call and t ~= 'comment' then
233 while t and not (t == 'iden' and v == 'module') do
234 t,v = tnext(tok)
233 local prev_token
234 while t do
235 if prev_token ~= '.' and prev_token ~= ':' and t == 'iden' and v == 'module' then
236 break
237 end
238 prev_token = t
239 t, v = tnext(tok)
235240 end
236241 if not t then
237242 if not args.ignore then
240245 --return nil
241246 else
242247 mod,t,v = lang:parse_module_call(tok,t,v)
243 if mod ~= '...' then
248 if mod and mod ~= '...' then
244249 add_module(Tags.new{summary='(no description)'},mod,true)
245250 first_comment = false
246251 module_found = true