]> git.xolatile.top Git - public-libhl.git/commitdiff
syntax init modified appropriately for new groups
authoranon <anon@anon.anon>
Mon, 28 Aug 2023 13:41:09 +0000 (15:41 +0200)
committeranon <anon@anon.anon>
Mon, 28 Aug 2023 13:41:09 +0000 (15:41 +0200)
syntax/c.h

index 8ce987f399c03ad2f853a8741991f14a67045bec..271ee5c57ad5ebcb585694cbde03ee6f5f535af2 100644 (file)
@@ -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);