1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 03:34:11 +01:00

Fix 'findflags' help spec and make dactyl.generateHelp follow suit.

This commit is contained in:
Štěpán Němec
2011-09-25 12:00:57 +02:00
parent 6c7d51b086
commit 25d7a2fefd
2 changed files with 8 additions and 7 deletions

View File

@@ -819,12 +819,13 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
res.* += <> res.* += <>
<item> <item>
<tags>{template.map(obj.names.slice().reverse(), tag, " ")}</tags> <tags>{template.map(obj.names.slice().reverse(), tag, " ")}</tags>
<spec>{ <spec>{(obj instanceof Option)
let (name = (obj.specs || obj.names)[0]) ? template.map(obj.names.slice(), spec, " ")
spec(template.highlightRegexp(tag(name), : let (name = (obj.specs || obj.names)[0])
/\[(.*?)\]/g, spec(template.highlightRegexp(tag(name),
function (m, n0) <oa>{n0}</oa>), /\[(.*?)\]/g,
name) function (m, n0) <oa>{n0}</oa>),
name)
}</spec>{ }</spec>{
!obj.type ? "" : <> !obj.type ? "" : <>
<type>{obj.type}</type> <type>{obj.type}</type>

View File

@@ -721,7 +721,7 @@
<item> <item>
<tags>'ff' 'findflags'</tags> <tags>'ff' 'findflags'</tags>
<spec>'findflags'</spec> <spec>'findflags' 'ff'</spec>
<type>&option.findflags.type;</type> <type>&option.findflags.type;</type>
<default>&option.findflags.default;</default> <default>&option.findflags.default;</default>
<description> <description>