diff --git a/src/search.c b/src/search.c index 58a7631140..161117b584 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 e20349dc97..09cbf736bb 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, /**/