diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-11-10 14:51:28 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-11-10 14:56:14 +0100 |
| commit | d790924a6e94cc5fdcb142f2c46bed55d43b6f16 (patch) | |
| tree | 6875508e50534d3dd2771cea5649577e1af7db7e /config.def.h | |
| parent | 5c78717c51bb9a046694d7de0ba695011591e986 (diff) | |
| download | vis-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
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 2 |
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 */ \ } |
