PREFIX:=/usr/bin
CFLAGS:=-std=c99
-CPPFLAGS:=-D_GNU_SOURCE -D_FORTIFY_SOURCE=2
+CPPFLAGS:=-Isyntax/ -D_GNU_SOURCE -D_FORTIFY_SOURCE=2
DEBUG=1
+++ /dev/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
-};
-
-new_char_tokens("&|()[]{}*,", symbol_hl);
-new_keyword_tokens(c_keywords, keyword_hl);
-new_keyword_tokens(preprocessor_keywords, preprocessor_hl);
// Highlight init
terminal_hl_init();
//
- #include "hl_c.inc"
+ #include "c.h"
//
render_string(buffer, "cterm");
putchar('\n');
--- /dev/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
+};
+
+new_char_tokens("&|()[]{}*,", symbol_hl);
+new_keyword_tokens(c_keywords, keyword_hl);
+new_keyword_tokens(preprocessor_keywords, preprocessor_hl);