From: Bram Moolenaar Date: Tue, 1 Jan 2008 14:43:35 +0000 (+0000) Subject: updated for version 7.1-178 X-Git-Tag: v7.1.178 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=78d4abaa9387e8a370394f141ad5c7b2a2b54cc4;p=vim updated for version 7.1-178 --- diff --git a/src/search.c b/src/search.c index 58a763114..161117b58 100644 --- a/src/search.c +++ b/src/search.c @@ -2319,7 +2319,9 @@ check_linecomment(line) #endif while ((p = vim_strchr(p, '/')) != NULL) { - if (p[1] == '/') + /* accept a double /, unless it's preceded with * and followed by *, + * because * / / * is an end and start of a C comment */ + if (p[1] == '/' && (p == line || p[-1] != '*' || p[2] != '*')) break; ++p; } diff --git a/src/version.c b/src/version.c index e20349dc9..09cbf736b 100644 --- a/src/version.c +++ b/src/version.c @@ -666,6 +666,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 178, /**/ 177, /**/