From 3e1a87db3dfb6f42f77463a27246f7740d998598 Mon Sep 17 00:00:00 2001 From: xolatile Date: Mon, 28 Aug 2023 18:53:54 -0400 Subject: [PATCH] Doing it again... --- xighlight.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/xighlight.c b/xighlight.c index a3b0cfb..e0fb572 100644 --- a/xighlight.c +++ b/xighlight.c @@ -8,6 +8,8 @@ #include #include +#include +#include int main (void) { int offset = 0; @@ -38,13 +40,13 @@ int main (void) { "char", "short", "int", "long", "signed", "unsigned", "float", "double" }; - syntax_define (& preprocessor, 0, 0, "#", "\n", '\\', COLOUR_RED, EFFECT_BOLD); - syntax_define (& line_comment, 0, 0, "//", "\n", '\0', COLOUR_GREY, EFFECT_BOLD); - syntax_define (& multiline_comment, 0, 0, "/*", "*/", '\0', COLOUR_GREY, EFFECT_BOLD); - syntax_define (& character, 0, 0, "'", "'", '\\', COLOUR_PINK, EFFECT_BOLD); - syntax_define (& string, 0, 0, "\"", "\"", '\\', COLOUR_RED, EFFECT_BOLD); - syntax_define (& bracket, 1, 0, "()[]{}", "", '\0', COLOUR_GREEN, EFFECT_BOLD); - syntax_define (& operator, 1, 0, ".,:;<=>+-*/%!&~^?", "", '\0', COLOUR_BLUE, EFFECT_BOLD); + syntax_define (& preprocessor, 0, 0, "#", "\n", '\\', COLOUR_RED, EFFECT_BOLD); + syntax_define (& line_comment, 0, 0, "//", "\n", '\0', COLOUR_GREY, EFFECT_BOLD); + syntax_define (& multiline_comment, 0, 0, "/*", "*/", '\0', COLOUR_GREY, EFFECT_BOLD); + syntax_define (& character, 0, 0, "'", "'", '\\', COLOUR_PINK, EFFECT_BOLD); + syntax_define (& string, 0, 0, "\"", "\"", '\\', COLOUR_RED, EFFECT_BOLD); + syntax_define (& bracket, 1, 0, "()[]{}", "", '\0', COLOUR_GREEN, EFFECT_BOLD); + syntax_define (& operator, 1, 0, ".,:;<=>+-*/%!&~^?|", "", '\0', COLOUR_BLUE, EFFECT_BOLD); for (word = 0; word != 32; ++word) { syntax_define (& keyword, 0, 1, c_keywords [word], separator, '\0', COLOUR_YELLOW, EFFECT_BOLD);