From e985828a4639f61593a5296bec0869aac735f9d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 6 Jan 2015 17:32:55 +0100 Subject: Support per file type settings This adds yet another layer of indirection. exec_cmdline_command should take a const char pointer and not modify its argument. --- syntax.h | 1 + 1 file changed, 1 insertion(+) (limited to 'syntax.h') diff --git a/syntax.h b/syntax.h index a38c87f..13fcb8c 100644 --- a/syntax.h +++ b/syntax.h @@ -20,6 +20,7 @@ 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 */ + const char **settings;/* settings associated with this file type */ SyntaxRule rules[24]; /* all rules for this file type */ }; -- cgit v1.2.3