mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-29 20:47:49 +00:00
Who knew macro names actually have leading underscores sometimes?
Tweak macroscope to cope.
This commit is contained in:
parent
c0f5959abb
commit
fd8dfe70c7
@ -79,7 +79,7 @@ class macro_cross_reference:
|
||||
line = line.split('#')[0]
|
||||
if not line or "{" not in line:
|
||||
continue
|
||||
for match in re.finditer(r"\{([A-Z][A-Z0-9_:]*[A-Z0-9_])\b", line):
|
||||
for match in re.finditer(r"\{([A-Z_][A-Z0-9_:]*[A-Z0-9_])\b", line):
|
||||
name = match.group(1)
|
||||
if name in formals:
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user