diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-20 09:27:24 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-20 09:27:24 +0200 |
| commit | 418bd060aa5c56a7a30cf85b055e8c749abc841b (patch) | |
| tree | 6f736fc4de6b133d3347088065c74697f76bccf0 /config.def.h | |
| parent | 2630e50e1c33a4383f16a9bda82a7822500a7dfc (diff) | |
| download | vis-418bd060aa5c56a7a30cf85b055e8c749abc841b.tar.gz vis-418bd060aa5c56a7a30cf85b055e8c749abc841b.tar.xz | |
Revert some multiline syntax definitions
Since we do not color content before the visible area, these rules
work better for now.
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/config.def.h b/config.def.h index 0f7cd4a..1d7c9ab 100644 --- a/config.def.h +++ b/config.def.h @@ -789,10 +789,10 @@ static Color colors[] = { /* common rules, used by multiple languages */ -#define SYNTAX_MULTILINE_COMMENT { \ - "(/\\*([^*]|\\*[^/])*\\*/)", \ - &colors[COLOR_COMMENT], \ - true, /* multiline */ \ +#define SYNTAX_MULTILINE_COMMENT { \ + "(/\\*([^*]|\\*[^/])*\\*/|/\\*([^*]|\\*[^/])*$|^([^/]|/[^*])*\\*/)", \ + &colors[COLOR_COMMENT], \ + true, /* multiline */ \ } #define SYNTAX_SINGLE_LINE_COMMENT { \ @@ -808,7 +808,7 @@ static Color colors[] = { #define SYNTAX_STRING { \ "(\"(\\\\.|[^\"])*\")", \ &colors[COLOR_STRING], \ - true, /* multiline */ \ + false, /* multiline */ \ } #define SYNTAX_CONSTANT { \ |
