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--;
|
||||
}
|
||||
|
||||
write_indent();
|
||||
write("end\n");
|
||||
}
|
||||
else if (auto *ret = dynamic_cast<const Return *>(&stmt))
|
||||
|
|
@ -100,6 +100,7 @@ private:
|
|||
generate_stmt(*s);
|
||||
}
|
||||
indent_level--;
|
||||
write_indent();
|
||||
write("end\n");
|
||||
}
|
||||
else if (auto *while_stmt = dynamic_cast<const While *>(&stmt))
|
||||
|
|
@ -114,6 +115,7 @@ private:
|
|||
generate_stmt(*s);
|
||||
}
|
||||
indent_level--;
|
||||
write_indent();
|
||||
write("end\n");
|
||||
}
|
||||
else if (auto *pass_stmt = dynamic_cast<const Pass *>(&stmt))
|
||||
|
|
@ -149,6 +151,7 @@ private:
|
|||
generate_stmt(*s);
|
||||
}
|
||||
indent_level--;
|
||||
write_indent();
|
||||
write("end\n");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue