improve the macroOpenPattern regex

This commit is contained in:
Patrick Parker 2007-09-09 06:58:31 +00:00
parent 6a78a29ecb
commit 9401cea6af

View file

@ -6,7 +6,7 @@ import sys, re
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):