Pārlūkot izejas kodu

Fix autofail contexts.

tags/v0.3
Ben Kurtovic pirms 11 gadiem
vecāks
revīzija
fcdc0abd22
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      mwparserfromhell/parser/contexts.py
  2. +1
    -1
      mwparserfromhell/parser/tokenizer.h

+ 1
- 1
mwparserfromhell/parser/contexts.py Parādīt failu

@@ -162,7 +162,7 @@ GL_HEADING = 1 << 0

# Aggregate contexts:

FAIL = TEMPLATE + ARGUMENT + WIKILINK + EXT_LINK + HEADING + TAG + STYLE
FAIL = TEMPLATE + ARGUMENT + WIKILINK + EXT_LINK_TITLE + HEADING + TAG + STYLE
UNSAFE = (TEMPLATE_NAME + WIKILINK + EXT_LINK_TITLE + TEMPLATE_PARAM_KEY +
ARGUMENT_NAME + TAG_CLOSE)
DOUBLE = TEMPLATE_PARAM_KEY + TAG_CLOSE


+ 1
- 1
mwparserfromhell/parser/tokenizer.h Parādīt failu

@@ -162,7 +162,7 @@ static PyObject* TagCloseClose;

/* Aggregate contexts: */

#define AGG_FAIL (LC_TEMPLATE | LC_ARGUMENT | LC_WIKILINK | LC_HEADING | LC_TAG | LC_STYLE)
#define AGG_FAIL (LC_TEMPLATE | LC_ARGUMENT | LC_WIKILINK | LC_EXT_LINK_TITLE | LC_HEADING | LC_TAG | LC_STYLE)
#define AGG_UNSAFE (LC_TEMPLATE_NAME | LC_WIKILINK | LC_EXT_LINK_TITLE | LC_TEMPLATE_PARAM_KEY | LC_ARGUMENT_NAME)
#define AGG_DOUBLE (LC_TEMPLATE_PARAM_KEY | LC_TAG_CLOSE)
#define AGG_INVALID_LINK (LC_TEMPLATE_NAME | LC_ARGUMENT_NAME | LC_WIKILINK | LC_EXT_LINK)


Notiek ielāde…
Atcelt
Saglabāt