Small tweak to macro use detector,
...will avoid spurious matches on filemanes containing . and lead with capital letter.
This commit is contained in:
parent
4091dfa9b3
commit
dc35a4411c
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ class Reference:
|
|||
__repr__ = __str__
|
||||
|
||||
class CrossRef:
|
||||
macro_reference = re.compile(r"\{([A-Z_][A-Z0-9_:]*[A-Za-z0-9_])\b")
|
||||
macro_reference = re.compile(r"\{([A-Z_][A-Z0-9_:]*[A-Za-z0-9_])(?!\.)\b")
|
||||
file_reference = re.compile(r"[A-Za-z0-9{}.][A-Za-z0-9_/+{}.-]*\.(" + "|".join(resource_extensions) + ")")
|
||||
def mark_matching_resources(self, pattern, fn, n):
|
||||
"Mark all definitions matching a specified pattern with a reference."
|
||||
|
|
Loading…
Add table
Reference in a new issue