Изменения

preprocess
Строка 152: Строка 152:  
local empty = to_set { 'th', 'td', 'br', 'hr', 'img' }
 
local empty = to_set { 'th', 'td', 'br', 'hr', 'img' }
   −
local grammar = P { Ct (V'fragment' * -1),
+
local grammar = P { V'fragment' * -1,
 
fragment = (V'tag' + C (V'char' ^ 1)) ^ 0,
 
fragment = (V'tag' + C (V'char' ^ 1)) ^ 0,
 
tag = Ct (V'open' * V'fragment' * V'close' + V'void') / function (tbl)
 
tag = Ct (V'open' * V'fragment' * V'close' + V'void') / function (tbl)
Строка 203: Строка 203:  
return {
 
return {
 
test = function (frame)
 
test = function (frame)
return frame:preprocess (grammar:match (test))--mw.dumpObject (grammar:match (test))
+
return frame:preprocess (grammar:match (test))
 +
--return mw.dumpObject (grammar:match (test))
 
end
 
end
 
}
 
}