vis

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

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

commit 3aaf56e28c99e20f4f3458bfdece2e1a3a5fe208
parent fdcc28f2f4f13e81c63abeda7aebcf78266e8621
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat, 20 Sep 2014 09:27:24 +0200

Revert some multiline syntax definitions

Since we do not color content before the visible area, these rules
work better for now.

Diffstat:
Mconfig.def.h | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -789,10 +789,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 { \ @@ -808,7 +808,7 @@ static Color colors[] = { #define SYNTAX_STRING { \ "(\"(\\\\.|[^\"])*\")", \ &colors[COLOR_STRING], \ - true, /* multiline */ \ + false, /* multiline */ \ } #define SYNTAX_CONSTANT { \