From 18aa993466ab857b2a56612dabd243992e987998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 10 Sep 2014 11:46:59 +0200 Subject: Add comments where appropriate --- syntax.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'syntax.h') diff --git a/syntax.h b/syntax.h index a945389..accae9f 100644 --- a/syntax.h +++ b/syntax.h @@ -3,7 +3,7 @@ #include -#define SYNTAX_REGEX_RULES 10 +#define SYNTAX_RULES 10 /* maximal number of syntax rules per file type */ typedef struct { short fg, bg; /* fore and background color */ @@ -18,11 +18,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_REGEX_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[SYNTAX_RULES]; /* all rules for this file type */ }; #endif -- cgit v1.2.3