diff -r 661dd5f26bfd -r 48ebc3dd34a5 src/highlighter.c --- a/src/highlighter.c Thu May 08 18:22:11 2025 +0200 +++ b/src/highlighter.c Wed Oct 29 22:52:20 2025 +0100 @@ -55,7 +55,7 @@ static int check_keyword(cxstring word, const char** keywords) { for (int i = 0 ; keywords[i] ; i++) { - if (cx_strcmp(word, cx_str(keywords[i])) == 0) { + if (cx_strcmp(word, keywords[i]) == 0) { return 1; } } @@ -371,13 +371,12 @@ if (wbuf->size > 0) { cxstring word = cx_strn(wbuf->space, wbuf->size); int closespan = 1; - cxstring typesuffix = CX_STR("_t"); if (check_keyword(word, ckeywords)) { start_span("keyword"); - } else if (cx_strsuffix(word, typesuffix)) { + } else if (cx_strsuffix(word, "_t")) { start_span("type"); } else if (word.ptr[0] == '#') { - isinclude = !cx_strcmp(word, CX_STR("#include")); + isinclude = !cx_strcmp(word, "#include"); start_span("directive"); } else if (check_capsonly(word)) { start_span("macroconst");