Tweak auto-format settings

Prefer lines that exceed 80 characters by a small margin to
line breaks in argument lists
This commit is contained in:
Max Brunsfeld 2014-09-09 13:15:40 -07:00
parent e9dad529f5
commit 2e7ffb4d14
19 changed files with 42 additions and 61 deletions

View file

@ -19,8 +19,7 @@ TSTree *ts_tree_make_leaf(TSSymbol sym, size_t size, size_t padding,
}
TSTree *ts_tree_make_error(size_t size, size_t padding, char lookahead_char) {
TSTree *result =
ts_tree_make_leaf(ts_builtin_sym_error, size, padding, false);
TSTree *result = ts_tree_make_leaf(ts_builtin_sym_error, size, padding, false);
result->lookahead_char = lookahead_char;
return result;
}
@ -161,9 +160,8 @@ static size_t write_lookahead_to_string(char *string, size_t limit,
}
}
static size_t tree_write_to_string(const TSTree *tree,
const char **symbol_names, char *string,
size_t limit, int is_root) {
static size_t tree_write_to_string(const TSTree *tree, const char **symbol_names,
char *string, size_t limit, int is_root) {
if (!tree)
return snprintf(string, limit, "(NULL)");