Commit alternative wmllint pattern by Soliton...

...that works without errors for new square bracket expansion
syntax. Other version was an attempt to be too simple it seems.
This commit is contained in:
David Mikos 2013-03-24 03:45:40 +00:00
parent f3581be738
commit 74f98dffad

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'