vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 0901ea6c504ab0264fb5cab8d9d2fd2a4500df5b
parent 82eb7d5ee5d14d290b3bb49d9b6bdffb4de26225
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Mon, 10 Nov 2014 14:51:28 +0100

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:
Mconfig.def.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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 */ \ }