From ca5c16c0d8d955cb25daf04bc1d7c84941bd5200 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 5 Apr 2007 22:26:45 +0000 Subject: [PATCH] Ignore references in comments. --- data/tools/macroscope | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/tools/macroscope b/data/tools/macroscope index c854ec20ded..92b48396d84 100755 --- a/data/tools/macroscope +++ b/data/tools/macroscope @@ -44,7 +44,7 @@ cfgfiles = filter(lambda x: x.endswith(".cfg"), cfgfiles) for filename in cfgfiles: rfp = open(filename) for (n, line) in enumerate(rfp): - if "{" not in line: + if line[0] == "#" or "{" not in line: continue for name in xref: if re.search("{" + name + r"\b", line):