wmlscope: never consider macro definitions as part of the file docstring

This commit is contained in:
Elvish_Hunter 2020-11-22 10:59:02 +01:00
parent 13fa4ba194
commit 4be3eb580a

View file

@ -364,7 +364,7 @@ class CrossRefLister(CrossRef):
line = line.lstrip()
if line and line.startswith("#textdomain"):
continue
if line and line[0] == '#':
if line and line[0] == '#' and (not line.startswith("#define")):
hdr.append(line[1:])
else:
break