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:
parent
f3581be738
commit
74f98dffad
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue