Codebase list lua-ldoc / b903eb7
temporary file hack borked on Windows; working on parsing tag modifiers _properly_ steve donovan 7 years ago
2 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
536536 if avalue then value = avalue..' '..value end
537537 if amod then
538538 modifiers = modifiers or {}
539 local value_tokens = utils.split(value)
539540 for m,v in pairs(amod) do
540 local idx = v:match('^%$(%d+)')
541 local idx = tonumber(v:match('^%$(%d+)'))
541542 if idx then
542543 v, value = value:match('(%S+)(.*)')
544 -- v = value_tokens[idx]
545 -- value_tokens[idx] = ''
543546 end
544547 modifiers[m] = v
545548 end
549 -- value = table.concat(value_tokens, ' ')
546550 end
547551 else -- has to be a function that at least returns tag, value
548552 return alias(tags,value,modifiers)
773773 local builtin_style, builtin_template = match_bang(args.style),match_bang(args.template)
774774 if builtin_style or builtin_template then
775775 -- '!' here means 'use built-in templates'
776 local user = path.expanduser('~'):gsub('[/\\ ]','_')
776 local user = path.expanduser('~'):gsub('[/\\: ]','_')
777777 local tmpdir = path.join(path.is_windows and os.getenv('TMP') or '/tmp','ldoc'..user)
778778 if not path.isdir(tmpdir) then
779779 lfs.mkdir(tmpdir)