Author: esr
Date: Thu Sep 23 14:29:11 2010
New Revision: 46663
URL: http://svn.gna.org/viewcvs/wesnoth?rev=46663&view=rev
Log:
Introduce wildcarding for @R0 and @V.
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=46663&r1=46662&r2=46663&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmltools.py (original)
+++ trunk/data/tools/wesnoth/wmltools.py Thu Sep 23 14:29:11 2010
@@ -645,11 +645,11 @@
if name in self.fileref and self.visible_from(name,
fn, n):
self.fileref[name].append(fn, n+1)
continue
- # If the name contains subtitutable parts, count
+ # If the name contains substitutable parts, count
# it as a reference to everything the substitutions
# could potentially match.
- elif '{' in name:
- pattern = re.sub(r"\{[^}]*\}", '.*', name)
+ elif '{' in name or '@' in name:
+ pattern = re.sub(r"(\{[^}]*\}|@R0|@V)", '.*', name)
key = self.mark_matching_resources(pattern, fn,n+1)
if key:
self.fileref[key].append(fn, n+1)
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits