mail[Wesnoth-commits] r20218 - /trunk/data/tools/wesnoth/wmliterator.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by patrick_X99 on September 09, 2007 - 08:59:
Author: sapient
Date: Sun Sep  9 08:58:31 2007
New Revision: 20218

URL: http://svn.gna.org/viewcvs/wesnoth?rev=20218&view=rev
Log:
improve the macroOpenPattern regex

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

Modified: trunk/data/tools/wesnoth/wmliterator.py
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wesnoth/wmliterator.py?rev=20218&r1=20217&r2=20218&view=diff
==============================================================================
--- trunk/data/tools/wesnoth/wmliterator.py (original)
+++ trunk/data/tools/wesnoth/wmliterator.py Sun Sep  9 08:58:31 2007
@@ -6,7 +6,7 @@
 keyPattern = re.compile('(\w+)(,\w+)*\s*=')
 keySplit = re.compile(r'[=,\s]')
 tagPattern = re.compile(r'(\[.*?\])')
-macroOpenPattern = re.compile(r'(\{[\w\:]+)')
+macroOpenPattern = re.compile(r'(\{[^\s\}]+)')
 macroClosePattern = re.compile(r'\}')
 
 def wmlfind(element, itor):




Related Messages


Powered by MHonArc, Updated Sun Sep 09 11:20:27 2007