From b3b1abc76a832e53159b1191120bef56fe3a7041 Mon Sep 17 00:00:00 2001 From: noname Date: Fri, 3 Apr 2015 19:44:22 +0000 Subject: Fixed multiline comment regexp. Comments like "/***/" with odd number of asterisks are handled like normal comments now. Previously they were handled like unfinished comments. --- config.def.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config.def.h b/config.def.h index ee6d4ae..2a9e258 100644 --- a/config.def.h +++ b/config.def.h @@ -869,10 +869,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 { \ -- cgit v1.2.3