1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 05:52:27 +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.* += <>
<item>
<tags>{template.map(obj.names.slice().reverse(), tag, " ")}</tags>
<spec>{
let (name = (obj.specs || obj.names)[0])
spec(template.highlightRegexp(tag(name),
/\[(.*?)\]/g,
function (m, n0) <oa>{n0}</oa>),
name)
<spec>{(obj instanceof Option)
? template.map(obj.names.slice(), spec, " ")
: let (name = (obj.specs || obj.names)[0])
spec(template.highlightRegexp(tag(name),
/\[(.*?)\]/g,
function (m, n0) <oa>{n0}</oa>),
name)
}</spec>{
!obj.type ? "" : <>
<type>{obj.type}</type>

View File

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