wmlscope: do not report 'INTERNAL:' macros in the macro reference

This commit is contained in:
Elvish_Hunter 2021-07-04 11:42:12 +02:00
parent eaa39d653b
commit 00a5beb5ae

View file

@ -337,7 +337,9 @@ class CrossRefLister(CrossRef):
def extracthelp(self, pref, fp):
"Deliver all macro help comments in HTML form."
# Bug: finds only the first definition of each macro in scope.
doclist = [x for x in self.xref.keys()]
# macros starting with INTERNAL: are only for internal use
# and aren't supposed to be reported in the macro reference
doclist = [x for x in self.xref.keys() if not x.startswith("INTERNAL:")]
doclist.sort(key=lambda element: self.xref[element][0])
outstr = ""
filename = None