[dev] [vis] [PATCH] Fixed multiline comment regexp.

From: noname <noname_AT_inventati.org>
Date: Fri, 3 Apr 2015 19:44:22 +0000

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
_AT_@ -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 { \
-- 
1.8.4
Received on Fri Apr 03 2015 - 21:44:22 CEST

This archive was generated by hypermail 2.3.0 : Fri Apr 03 2015 - 21:48:14 CEST