From: anon Date: Mon, 28 Aug 2023 13:41:09 +0000 (+0200) Subject: syntax init modified appropriately for new groups X-Git-Url: https://git.xolatile.top/?a=commitdiff_plain;h=6aa4c0035c54070eb66b7cdcb24674311a29f04f;p=public-libhl.git syntax init modified appropriately for new groups --- diff --git a/syntax/c.h b/syntax/c.h index 8ce987f..271ee5c 100644 --- a/syntax/c.h +++ b/syntax/c.h @@ -12,6 +12,10 @@ const char * preprocessor_keywords[] = { NULL }; -new_char_tokens("&|()[]{}*,", symbol_hl); -new_keyword_tokens(c_keywords, keyword_hl); -new_keyword_tokens(preprocessor_keywords, preprocessor_hl); +new_char_tokens("+-&|.()[]{}", operator_hl); +new_keyword_tokens(c_keywords, control_hl); +new_keyword_tokens(preprocessor_keywords, special_hl); +new_region_token("/\\*", "\\*/", comment_hl); +new_region_token("//", "\\n", comment_hl); +new_region_token("\"", "\"", string_literal_hl); +new_region_token("<", ">", string_literal_hl);