Fix indentation
This commit is contained in:
parent
81581b1905
commit
6f5904ecf6
1 changed files with 10 additions and 10 deletions
20
src/syntax.c
20
src/syntax.c
|
@ -168,20 +168,20 @@ char *syntax_to_color(int hl, size_t *len)
|
||||||
return strdup(YELLOW_BG);
|
return strdup(YELLOW_BG);
|
||||||
|
|
||||||
case MATCH:;
|
case MATCH:;
|
||||||
char *str = malloc(COLOR_LEN * 2 + 1);
|
char *str = malloc(COLOR_LEN * 2 + 1);
|
||||||
snprintf(str, COLOR_LEN * 2 + 1, "%s%s", BLACK_BG, SKY_FG);
|
snprintf(str, COLOR_LEN * 2 + 1, "%s%s", BLACK_BG, SKY_FG);
|
||||||
*len = COLOR_LEN * 2;
|
*len = COLOR_LEN * 2;
|
||||||
return str;
|
return str;
|
||||||
|
|
||||||
case RESET:;
|
case RESET:;
|
||||||
char *res = malloc(COLOR_LEN * 2 + 1);
|
char *res = malloc(COLOR_LEN * 2 + 1);
|
||||||
snprintf(res, COLOR_LEN * 2 + 1, "%s%s", WHITE_BG, BLACK_FG);
|
snprintf(res, COLOR_LEN * 2 + 1, "%s%s", WHITE_BG, BLACK_FG);
|
||||||
*len = COLOR_LEN * 2;
|
*len = COLOR_LEN * 2;
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
*len = COLOR_LEN;
|
*len = COLOR_LEN;
|
||||||
return strdup(WHITE_BG);
|
return strdup(WHITE_BG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue