From bab44ff37c248a593199d9b3e69700800a49fbd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 15 Sep 2014 15:06:59 +0200 Subject: More efficient syntax highlighting, first match wins --- syntax.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'syntax.h') diff --git a/syntax.h b/syntax.h index accae9f..7d952fb 100644 --- a/syntax.h +++ b/syntax.h @@ -13,7 +13,7 @@ typedef struct { typedef struct { char *rule; /* regex to search for */ int cflags; /* compilation flags (REG_*) used when compiling */ - Color color; /* settings to apply in case of a match */ + Color *color; /* settings to apply in case of a match */ regex_t regex; /* compiled form of the above rule */ } SyntaxRule; -- cgit v1.2.3