aboutsummaryrefslogtreecommitdiff
path: root/syntax.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-01-06 17:32:55 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-01-06 22:13:57 +0100
commite985828a4639f61593a5296bec0869aac735f9d8 (patch)
treee7bcb01df0225e29f1f8239ecb775e322f59eb68 /syntax.h
parentb84d93ce6db52805a8816412e4bf93d22f078e53 (diff)
downloadvis-e985828a4639f61593a5296bec0869aac735f9d8.tar.gz
vis-e985828a4639f61593a5296bec0869aac735f9d8.tar.xz
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.
Diffstat (limited to 'syntax.h')
-rw-r--r--syntax.h1
1 files changed, 1 insertions, 0 deletions
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 */
};