From 418bd060aa5c56a7a30cf85b055e8c749abc841b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 20 Sep 2014 09:27:24 +0200 Subject: Revert some multiline syntax definitions Since we do not color content before the visible area, these rules work better for now. --- config.def.h | 10 +++++----- 1 file 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 { \ -- cgit v1.2.3