From 2630e50e1c33a4383f16a9bda82a7822500a7dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 18 Sep 2014 14:06:30 +0200 Subject: Improve syntax highlighting --- syntax.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'syntax.h') diff --git a/syntax.h b/syntax.h index a4e4a33..262ab28 100644 --- a/syntax.h +++ b/syntax.h @@ -3,8 +3,6 @@ #include -#define SYNTAX_RULES 10 /* maximal number of syntax rules per file type */ - typedef struct { short fg, bg; /* fore and background color */ int attr; /* curses attributes */ @@ -18,11 +16,11 @@ typedef struct { } SyntaxRule; typedef struct Syntax Syntax; -struct Syntax { /* a syntax definition */ - char *name; /* syntax name */ - char *file; /* apply to files matching this regex */ - regex_t file_regex; /* compiled file name regex */ - SyntaxRule rules[SYNTAX_RULES]; /* all rules for this file type */ +struct Syntax { /* a syntax definition */ + char *name; /* syntax name */ + char *file; /* apply to files matching this regex */ + regex_t file_regex; /* compiled file name regex */ + SyntaxRule rules[12]; /* all rules for this file type */ }; #endif -- cgit v1.2.3