diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-10 11:46:59 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-10 11:46:59 +0200 |
| commit | 18aa993466ab857b2a56612dabd243992e987998 (patch) | |
| tree | 4e7d4ca1df42eb25ed65bea36894595766e7b22f /syntax.h | |
| parent | deca6f4d03d36e4980715ae6709f244f381b1175 (diff) | |
| download | vis-18aa993466ab857b2a56612dabd243992e987998.tar.gz vis-18aa993466ab857b2a56612dabd243992e987998.tar.xz | |
Add comments where appropriate
Diffstat (limited to 'syntax.h')
| -rw-r--r-- | syntax.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -3,7 +3,7 @@ #include <regex.h> -#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 |
