From d790924a6e94cc5fdcb142f2c46bed55d43b6f16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 10 Nov 2014 14:51:28 +0100 Subject: 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 --- config.def.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ \ } -- cgit v1.2.3