Apply wmllint change by Soliton to account for new square bracket expansion...

...syntax used in uniWML and elsewhere.
This commit is contained in:
David Mikos 2013-03-24 01:13:25 +00:00
parent bbace6d70c
commit 79330a3ae9

View File

@ -23,7 +23,7 @@ Limitations:
import sys, re, copy
keyPattern = re.compile('(\w+)(,\s?\w+)*\s*=')
keySplit = re.compile(r'[=,\s]')
tagPattern = re.compile(r'(^|(?<![\w\|\}]))(\[/?\+?[a-z].*?\])')
tagPattern = re.compile(r'(^|[^\w|}])(\[/?\+?[a-z _]+\])')
macroOpenPattern = re.compile(r'(\{[^\s\}\{]*)')
macroClosePattern = re.compile(r'\}')
closeMacroType = 'end of macro'