Warning: session_start(): open(/var/lib/php/sessions/sess_s86i32cr9at5sae4h9bdrro8r7, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
// return new rule text, add comments to comments
sS gazelle_processSquareBracketAnnotations(S ruleText, LS comments) {
LS lines = tlft(ruleText);
while (isSquareBracketed(last(lines)))
comments.add(deSquareBracket(popLast(lines)));
int out = -1;
for i over lines: {
S s = lines.get(i);
PairS p = splitTrailingSquareBracketStuff(s);
if (startsWith(s, "=>")) out = i;
if (nempty(p.b))
comments.add(
(out >= 0 ? i == out && i == l(lines)-1 ? "out" : "out " + (i-out+1) : "in " + (i+1))
+ " = " + gazelle_canonicalizeLineType(p.b));
lines.set(i, p.a);
}
ret lines_rtrim(lines);
}