Author: esr
Date: Thu Sep 23 13:57:12 2010
New Revision: 46662

URL: http://svn.gna.org/viewcvs/wesnoth?rev=46662&view=rev
Log:
Another what at matching wildcarded names.

Modified:
    trunk/data/tools/wesnoth/wmltools.py

Modified: trunk/data/tools/wesnoth/wmltools.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wesnoth/wmltools.py?rev=46662&r1=46661&r2=46662&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmltools.py (original)
+++ trunk/data/tools/wesnoth/wmltools.py Thu Sep 23 13:57:12 2010
@@ -14,7 +14,7 @@
 image_reference = r"[A-Za-z0-9{}.][A-Za-z0-9_/+{}.-]*\.(png|jpg)(?=(~.*)?)"
 
 def is_root(dirname):
-    "Is the specified path the filesysten root?"
+    "Is the specified path the filesystem root?"
     return dirname == os.sep or (os.sep == '\\' and dirname.endswith(':\\'))
 
 def pop_to_top(whoami):
@@ -317,7 +317,7 @@
 
 class CrossRef:
     macro_reference = re.compile(r"\{([A-Z_][A-Za-z0-9_:]*)(?!\.)\b")
-    file_reference =  re.compile(r"[A-Za-z0-9{}.][A-Za-z0-9_/+{}.-]*\.(" + 
"|".join(resource_extensions) + ")(?=(~.*)?)")
+    file_reference =  re.compile(r"[A-Za-z0-9{}.][A-Za-z0-9_/+...@-]*\.(" + 
"|".join(resource_extensions) + ")(?=(~.*)?)")
     tag_parse = re.compile("\s*([a-z_]+)\s*=(.*)") 
     def mark_matching_resources(self, pattern, fn, n):
         "Mark all definitions matching a specified pattern with a reference."


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to