alignment

This commit is contained in:
anon 2023-09-18 23:28:24 +02:00
parent db1199cfa8
commit 0b061ad658

View File

@ -133,7 +133,7 @@ int new_keyword_tokens(const char * const * words,
token_t * new_region_token(const char * start, token_t * new_region_token(const char * start,
const char * end, const char * end,
hl_group_t * g) { hl_group_t * g) {
char buffer[100]; char buffer[100];
buffer[0] = '\0'; buffer[0] = '\0';
strcat(buffer, start); strcat(buffer, start);
@ -183,14 +183,14 @@ int token_fits(const token_t * const token,
const char * const to, const char * const to,
const int string_offset, const int string_offset,
const bool is_start_of_line, const bool is_start_of_line,
int * match_offset) { int * match_offset) {
UNUSED(match_offset); UNUSED(match_offset);
//return regex_match(pattern, to, string_offset, match_offset); //return regex_match(pattern, to, string_offset, match_offset);
return (int)regex_match(token->syntax, to, is_start_of_line); return (int)regex_match(token->syntax, to, is_start_of_line);
} }
void render_string(const char * const string, void render_string(const char * const string,
const char * const mode) { const char * const mode) {
for (const char * s = string; *s != '\00';) { for (const char * s = string; *s != '\00';) {
int f = 0; int f = 0;
size_t token_index = 0; size_t token_index = 0;