Now that maps have their own extension,
...macroscope can sanity-check reference to them just like any other resource file type.
This commit is contained in:
parent
711fa85e94
commit
b5765d123e
1 changed files with 3 additions and 1 deletions
|
@ -53,7 +53,7 @@
|
|||
|
||||
import sys, os, time, re, getopt, sre_constants, md5
|
||||
|
||||
resource_extensions = ("png", "jpg", "ogg", "wav")
|
||||
resource_extensions = ("png", "jpg", "ogg", "wav", "map")
|
||||
|
||||
def htmlize(line):
|
||||
"HTML-escape a text line"
|
||||
|
@ -316,6 +316,8 @@ class CrossRef:
|
|||
# Find references to resource files
|
||||
for match in re.finditer(CrossRef.file_reference, line):
|
||||
name = match.group(0)
|
||||
if name.endswith(".map") and name[0] == '{':
|
||||
name = name[1:]
|
||||
key = None
|
||||
# If name is already in our resource list, it's easy.
|
||||
if name in self.fileref and self.visible_from(name, fn, n):
|
||||
|
|
Loading…
Add table
Reference in a new issue