Remove remaining trailing whitespace from generated c code
This commit is contained in:
parent
618a138e67
commit
a79a7435de
8 changed files with 80 additions and 817 deletions
|
|
@ -193,11 +193,11 @@ namespace tree_sitter {
|
|||
}
|
||||
|
||||
string hidden_symbols_list() {
|
||||
string result = "HIDDEN_SYMBOLS = {";
|
||||
string result = "HIDDEN_SYMBOLS = {\n";
|
||||
for (auto &symbol : parse_table.symbols)
|
||||
if (symbol.is_hidden())
|
||||
result += indent("\n[" + symbol_id(symbol) + "] = 1,");
|
||||
return result + "\n};";
|
||||
result += indent("[" + symbol_id(symbol) + "] = 1,") + "\n";
|
||||
return result + "};";
|
||||
}
|
||||
|
||||
string includes() {
|
||||
|
|
@ -240,7 +240,7 @@ namespace tree_sitter {
|
|||
string result = "[" + to_string(state_id++) + "] = {\n";
|
||||
for (auto &pair : state.actions)
|
||||
result += indent("[" + symbol_id(pair.first) + "] = " + code_for_parse_action(pair.second) + ",") + "\n";
|
||||
return result + "},\n";
|
||||
return result + "},";
|
||||
}), "\n")),
|
||||
"};"
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue