]> granicus.if.org Git - vim/commitdiff
updated for version 7.1-178 v7.1.178
authorBram Moolenaar <Bram@vim.org>
Tue, 1 Jan 2008 14:43:35 +0000 (14:43 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 1 Jan 2008 14:43:35 +0000 (14:43 +0000)
src/search.c
src/version.c

index 58a7631140431c653554196e4855503cf54f2369..161117b584ea331c5506655ef5feac144a7482a2 100644 (file)
@@ -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;
     }
index e20349dc97307f8e75ff8636ce8216507eef998b..09cbf736bb9a109fcf9ff99d045bb28fa1ecd1ac 100644 (file)
@@ -666,6 +666,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    178,
 /**/
     177,
 /**/