refactor(uncrustify): disable formatting in problematic code sections

This commit is contained in:
Dundar Goc
2022-04-18 12:54:25 +02:00
parent 8c548c9e54
commit 995c186368
5 changed files with 20 additions and 4 deletions

View File

@@ -546,6 +546,8 @@ Integer nvim_buf_set_extmark(Buffer buffer, Integer ns_id, Integer line, Integer
goto error;
}
// uncrustify:off
struct {
const char *name;
Object *opt;
@@ -559,6 +561,8 @@ Integer nvim_buf_set_extmark(Buffer buffer, Integer ns_id, Integer line, Integer
{ NULL, NULL, NULL },
};
// uncrustify:on
for (int j = 0; hls[j].name && hls[j].dest; j++) {
if (HAS_KEY(*hls[j].opt)) {
*hls[j].dest = object_to_hl_id(*hls[j].opt, hls[j].name, err);