aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-11-10 14:51:28 +0100
committerMarc André Tanner <mat@brain-dump.org>2014-11-10 14:56:14 +0100
commitd790924a6e94cc5fdcb142f2c46bed55d43b6f16 (patch)
tree6875508e50534d3dd2771cea5649577e1af7db7e
parent5c78717c51bb9a046694d7de0ba695011591e986 (diff)
downloadvis-d790924a6e94cc5fdcb142f2c46bed55d43b6f16.tar.gz
vis-d790924a6e94cc5fdcb142f2c46bed55d43b6f16.tar.xz
Improve syntax highlighting of C style comments ending in **/
Based on a patch from Augusto Born de Oliveira and ideas from http://ostermiller.org/findcomment.html
-rw-r--r--config.def.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index 4a9ac9a..f41dd81 100644
--- a/config.def.h
+++ b/config.def.h
@@ -889,7 +889,7 @@ static Color colors[] = {
/* common rules, used by multiple languages */
#define SYNTAX_MULTILINE_COMMENT { \
- "(/\\*([^*]|\\*[^/])*\\*/|/\\*([^*]|\\*[^/])*$|^([^/]|/[^*])*\\*/)", \
+ "(/\\*([^*]|\\*+[^*/])*\\*+/|/\\*([^*]|\\*[^/])*$|^([^/]|/[^*])*\\*/)", \
&colors[COLOR_COMMENT], \
true, /* multiline */ \
}