aboutsummaryrefslogtreecommitdiff
path: root/syntax.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-10-12 16:50:08 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-11-08 13:35:36 +0100
commitb1ec60061623601ca6185a16d77c6c6c62135e95 (patch)
treeb8ffce3d3141a297d9c3572bdd6165d002863b28 /syntax.h
parent2d4408f975ea44ffabd7c3a6d43e4d9b5725c052 (diff)
downloadvis-b1ec60061623601ca6185a16d77c6c6c62135e95.tar.gz
vis-b1ec60061623601ca6185a16d77c6c6c62135e95.tar.xz
vis: remove regex based syntax highlighting
Diffstat (limited to 'syntax.h')
-rw-r--r--syntax.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/syntax.h b/syntax.h
index 8ce623e..35be024 100644
--- a/syntax.h
+++ b/syntax.h
@@ -1,15 +1,6 @@
#ifndef SYNTAX_H
#define SYNTAX_H
-#include <regex.h>
-
-typedef struct {
- char *rule; /* regex to search for */
- int style; /* settings to apply in case of a match */
- bool multiline; /* whether . should match new lines */
- regex_t regex; /* compiled form of the above rule */
-} SyntaxRule;
-
typedef struct {
char *symbol;
int style;
@@ -24,15 +15,4 @@ enum {
SYNTAX_SYMBOL_LAST,
};
-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 */
- const char **settings;/* settings associated with this file type */
- const char **styles; /* settings associated with this file type */
- SyntaxSymbol symbols[SYNTAX_SYMBOL_LAST]; /* symbols for white space handling */
- SyntaxRule rules[24]; /* all rules for this file type */
-};
-
#endif