https://bugzilla.wikimedia.org/show_bug.cgi?id=63979
--- Comment #2 from Gabriel Wicke <[email protected]> --- Seems to be a tokenizer issue: echo -ne '<!-- foo -->\n:{|\n|foo\n|}<!-- bar -->' | node parse --trace peg-tokens trace/peg-tokens : TOKS: [{"type":"SelfclosingTagTk","name":"meta","attribs":[{"k":"typeof","v":"mw:EmptyLine"}],"dataAttribs":{"tokens":[{"type":"COMMENT","value":" foo ","dataAttribs":{"tsr":[0,12]}},"\n"],"tsr":[0,13]}},{"type":"TagTk","name":"listItem","attribs":[],"dataAttribs":{"tsr":[13,14]},"bullets":[":"]},"{|"] trace/peg-tokens : TOKS: [{"type":"NlTk","dataAttribs":{"tsr":[16,17]}},{"type":"TagTk","name":"td","attribs":[],"dataAttribs":{"tsr":[17,18]}},"foo",{"type":"SelfclosingTagTk","name":"meta","attribs":[{"k":"typeof","v":"mw:TSRMarker"},{"k":"data-tag","v":"td"}],"dataAttribs":{"tsr":[21,21]}},{"type":"NlTk","dataAttribs":{"tsr":[21,22]}},{"type":"EndTagTk","name":"table","attribs":[],"dataAttribs":{"tsr":[22,24]}}] trace/peg-tokens : TOKS: [{"type":"COMMENT","value":" bar ","dataAttribs":{"tsr":[24,36]}},""] trace/peg-tokens : TOKS: [{"type":"EOFTk"}] <body data-parsoid='{"dsr":[0,36,0,0]}'><!-- foo --> <dl data-parsoid='{"dsr":[13,16,0,0]}'><dd data-parsoid='{"dsr":[13,16,1,0]}'>{|</dd></dl> |foo <!-- bar --></body> -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
