mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 15:33:16 +00:00
Ignore references in comments.
This commit is contained in:
parent
d079af233e
commit
ca5c16c0d8
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user