fixed end keyword indent
This commit is contained in:
parent
cfc130b890
commit
acb9bb442b
1 changed files with 4 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ private:
|
||||||
}
|
}
|
||||||
indent_level--;
|
indent_level--;
|
||||||
}
|
}
|
||||||
|
write_indent();
|
||||||
write("end\n");
|
write("end\n");
|
||||||
}
|
}
|
||||||
else if (auto *ret = dynamic_cast<const Return *>(&stmt))
|
else if (auto *ret = dynamic_cast<const Return *>(&stmt))
|
||||||
|
|
@ -100,6 +100,7 @@ private:
|
||||||
generate_stmt(*s);
|
generate_stmt(*s);
|
||||||
}
|
}
|
||||||
indent_level--;
|
indent_level--;
|
||||||
|
write_indent();
|
||||||
write("end\n");
|
write("end\n");
|
||||||
}
|
}
|
||||||
else if (auto *while_stmt = dynamic_cast<const While *>(&stmt))
|
else if (auto *while_stmt = dynamic_cast<const While *>(&stmt))
|
||||||
|
|
@ -114,6 +115,7 @@ private:
|
||||||
generate_stmt(*s);
|
generate_stmt(*s);
|
||||||
}
|
}
|
||||||
indent_level--;
|
indent_level--;
|
||||||
|
write_indent();
|
||||||
write("end\n");
|
write("end\n");
|
||||||
}
|
}
|
||||||
else if (auto *pass_stmt = dynamic_cast<const Pass *>(&stmt))
|
else if (auto *pass_stmt = dynamic_cast<const Pass *>(&stmt))
|
||||||
|
|
@ -149,6 +151,7 @@ private:
|
||||||
generate_stmt(*s);
|
generate_stmt(*s);
|
||||||
}
|
}
|
||||||
indent_level--;
|
indent_level--;
|
||||||
|
write_indent();
|
||||||
write("end\n");
|
write("end\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue