# HG changeset patch # User vimboss # Date 1199198615 0 # Node ID e6a8d55a1626baa2e38837b0e7a4a6bc65783623 # Parent ceaf71b15d813665b3b02036a619bc967db90d8f updated for version 7.1-178 diff --git a/src/search.c b/src/search.c --- 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 --- a/src/version.c +++ b/src/version.c @@ -667,6 +667,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 178, +/**/ 177, /**/ 176,