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

From: noname <noname_AT_inventati.org>
Date: Thu, 2 Apr 2015 02:27:31 +0300

Comments like "/***/" with odd number of asterisks are handled like
normal comments now. Previously they were handled like unfinished
comments.

Support for comments without opening "/*" at the beginning of the file
is removed because people do not normally write comments backwards.
---
 config.def.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/config.def.h b/config.def.h
index ee6d4ae..823aa71 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 Thu Apr 02 2015 - 01:27:31 CEST

This archive was generated by hypermail 2.3.0 : Thu Apr 02 2015 - 01:36:17 CEST