Browse Source

contexts.WIKILINK should also fail

tags/v0.2
Ben Kurtovic 11 years ago
parent
commit
b447e7bfc1
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      mwparserfromhell/parser/tokenizer.py

+ 2
- 1
mwparserfromhell/parser/tokenizer.py View File

@@ -434,7 +434,8 @@ class Tokenizer(object):
continue
if this is self.END:
fail = (contexts.TEMPLATE | contexts.ARGUMENT |
contexts.HEADING | contexts.COMMENT)
contexts.WIKILINK | contexts.HEADING |
contexts.COMMENT)
if self._context & contexts.TEMPLATE_PARAM_KEY:
self._pop()
if self._context & fail:


Loading…
Cancel
Save