Doing it again...

This commit is contained in:
Ognjen Milan Robovic 2023-08-28 18:53:54 -04:00
parent 197232db18
commit 3e1a87db3d

View File

@ -8,6 +8,8 @@
#include <xolatile/xyntax.h> #include <xolatile/xyntax.h>
#include <xolatile/xyntax.c> #include <xolatile/xyntax.c>
#include <xolatile/xurses.h>
#include <xolatile/xurses.c>
int main (void) { int main (void) {
int offset = 0; int offset = 0;
@ -44,7 +46,7 @@ int main (void) {
syntax_define (& character, 0, 0, "'", "'", '\\', COLOUR_PINK, EFFECT_BOLD); syntax_define (& character, 0, 0, "'", "'", '\\', COLOUR_PINK, EFFECT_BOLD);
syntax_define (& string, 0, 0, "\"", "\"", '\\', COLOUR_RED, EFFECT_BOLD); syntax_define (& string, 0, 0, "\"", "\"", '\\', COLOUR_RED, EFFECT_BOLD);
syntax_define (& bracket, 1, 0, "()[]{}", "", '\0', COLOUR_GREEN, EFFECT_BOLD); syntax_define (& bracket, 1, 0, "()[]{}", "", '\0', COLOUR_GREEN, EFFECT_BOLD);
syntax_define (& operator, 1, 0, ".,:;<=>+-*/%!&~^?", "", '\0', COLOUR_BLUE, EFFECT_BOLD); syntax_define (& operator, 1, 0, ".,:;<=>+-*/%!&~^?|", "", '\0', COLOUR_BLUE, EFFECT_BOLD);
for (word = 0; word != 32; ++word) { for (word = 0; word != 32; ++word) {
syntax_define (& keyword, 0, 1, c_keywords [word], separator, '\0', COLOUR_YELLOW, EFFECT_BOLD); syntax_define (& keyword, 0, 1, c_keywords [word], separator, '\0', COLOUR_YELLOW, EFFECT_BOLD);