]> git.xolatile.top Git - public-libhl.git/commitdiff
NOTABSWAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
authorEmil <emilwilliams@tuta.io>
Wed, 20 Sep 2023 23:53:33 +0000 (23:53 +0000)
committerEmil <emilwilliams@tuta.io>
Wed, 20 Sep 2023 23:53:33 +0000 (23:53 +0000)
include/syntax/c.h

index 9624072d4fac65e2123d7340f8489041b61b5f82..3356bdb5804c1dc6b55cacdcdee21e96c73cdf9f 100644 (file)
@@ -1,27 +1,27 @@
 void
 highlight_c(void)
 {
-  const char * c_keywords[] =  {
-    "register",     "volatile",     "auto",         "const",        "static",       "extern",       "if",           "else",
-    "do",           "while",        "for",          "continue",     "switch",       "case",         "default",      "break",
-    "enum",         "union",        "struct",       "typedef",      "goto",         "void",         "return",       "sizeof",
-    "char",         "short",        "int",          "long",         "signed",       "unsigned",     "float",        "double",
-    NULL
-  };
+       const char * c_keywords[] =  {
+               "register",     "volatile",     "auto",         "const",        "static",       "extern",       "if",           "else",
+               "do",           "while",        "for",          "continue",     "switch",       "case",         "default",      "break",
+               "enum",         "union",        "struct",       "typedef",      "goto",         "void",         "return",       "sizeof",
+               "char",         "short",        "int",          "long",         "signed",       "unsigned",     "float",        "double",
+               NULL
+       };
 
-  const char * preprocessor_keywords[] = {
-    "#include",     "#pragma",      "#define",      "#undef",       "#ifdef",       "#ifndef",      "#elifdef",     "#elifndef",
-    "#if",          "#elif",        "#else",        "#endif",       "#embed",       "#line",        "#error",       "#warning",
-    NULL
-  };
+       const char * preprocessor_keywords[] = {
+               "#include",     "#pragma",      "#define",      "#undef",       "#ifdef",       "#ifndef",      "#elifdef",     "#elifndef",
+               "#if",          "#elif",        "#else",        "#endif",       "#embed",       "#line",        "#error",       "#warning",
+               NULL
+       };
 
-  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);
-  new_keyword_token("keyword", special_hl);
-  new_keyword_token("while", operator_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);
+       new_keyword_token("keyword", special_hl);
+       new_keyword_token("while", operator_hl);
 }