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:
@@ -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>
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user