pub fn enableSpaceMode(ais: *AutoIndentingStream, space: Space) void ais: *AutoIndentingStreamspace: Space3460
3461
3462
3463
3464
3465 pub fn enableSpaceMode(ais: *AutoIndentingStream, space: Space) void {
if (ais.space_stack.items.len == 0) return;
const curr = ais.space_stack.last().?;
if (curr.space != space) return;
ais.space_mode = curr.indent_count;
}
Sets current indentation level to be the same as that of the last pushSpace.