From b1ec60061623601ca6185a16d77c6c6c62135e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 12 Oct 2015 16:50:08 +0200 Subject: vis: remove regex based syntax highlighting --- syntax.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'syntax.h') 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 - -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 -- cgit v1.2.3