diff options
| author | noname <noname@inventati.org> | 2015-04-03 19:44:22 +0000 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-04-03 23:50:32 +0200 |
| commit | b3b1abc76a832e53159b1191120bef56fe3a7041 (patch) | |
| tree | 1b919319ec536bf30780410633983370698c1d2b | |
| parent | 7422eeb846a69b924b8a71377fda1d4ca27370ce (diff) | |
| download | vis-b3b1abc76a832e53159b1191120bef56fe3a7041.tar.gz vis-b3b1abc76a832e53159b1191120bef56fe3a7041.tar.xz | |
Fixed multiline comment regexp.
Comments like "/***/" with odd number of asterisks are handled like
normal comments now. Previously they were handled like unfinished
comments.
| -rw-r--r-- | config.def.h | 8 |
1 files 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 { \ |
