Wrong identification of sequence when parsing fragile and code
Given the following mdtex: (lines in original: 377 - 406)
---[fragile] Dreieck Rasterisierung | Raster Scan Optimized
\begin{code}[basicstyle=\tiny, language=C++]
auto x_min = floor(min(x_0,x_1,x_2));
auto x_max = ceiling(max(x_0,x_1,x_2));
auto y_min = floor(min(y_0,y_1,y_2));
auto y_max = ceiling(max(y_0,y_1,y_2));
auto const inv_f20x1y1 = 1/f20(x1,y1);
auto const inv_f12x0y0 = 1/f12(x0,y0);
auto const inv_f01x2y2 = 1/f01(x2,y2);
for(auto x=x_min; x <= x_max; x++) {
for(auto y=y_min; y <= y_max; y++) {
auto alpha = f12(x,y) * inv_f12x0y0;
auto beta = f20(x,y) * inv_f20x1y1;
auto gamma = f01(x,y) * inv_f01x2y2;
if(alpha > 0 && beta > 0 && gamma > 0) {
auto attrib = alpha * c0 + beta * c1 + gamma c2;
DrawPixel(x,y,attrib);
}
}
}
\end{code}
Weitere Optimierungen
* Innere Schleife
* Äußere Schleife
%comment
%comment
---
The expected output would be a bullet list of "Weitere Optimierungen", but debug.log (attached) shows that the sequence is wrongly identified as ranging from 386 to 405. (See debug.log line 70779)debug.log