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
230 | 230 | end |
231 | 231 | end |
232 | 232 | 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) | |
235 | 240 | end |
236 | 241 | if not t then |
237 | 242 | if not args.ignore then |
240 | 245 | --return nil |
241 | 246 | else |
242 | 247 | mod,t,v = lang:parse_module_call(tok,t,v) |
243 | if mod ~= '...' then | |
248 | if mod and mod ~= '...' then | |
244 | 249 | add_module(Tags.new{summary='(no description)'},mod,true) |
245 | 250 | first_comment = false |
246 | 251 | module_found = true |