From e5cf0b74ef0d52fb85d7d1537997a208b085df8b Mon Sep 17 00:00:00 2001 From: anon Date: Sat, 19 Aug 2023 13:21:43 +0200 Subject: [PATCH] syntax fixing --- source/hl.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/hl.h b/source/hl.h index 5c565b6..a8e168b 100644 --- a/source/hl.h +++ b/source/hl.h @@ -38,8 +38,8 @@ token * token_table[1000]; int token_table_top = 0; token * new_token(const char * const syntax, - const token_t t, - const hl_group_t * const g) { + const token_t t, + const hl_group_t * const g) { token * mt = (token*)malloc(sizeof(token)); mt->hl = g; mt->t = t; @@ -57,7 +57,7 @@ void new_keyword_tokens(const char * const * words, } int token_fits(const char* const pattern, - const char* const to) { + const char* const to) { if (pattern == NULL) { return true; } @@ -95,7 +95,7 @@ void render_string(const char * const string, display_t * display; HASH_FIND_STR(display_table, mode, display); // - if(f){ + if (f) { display->callback(s, f, token_table[i]->hl->attributes); s += f; } else {