Mirror of the Vim source from https://github.com/vim/vim
Revision | e6a8d55a1626baa2e38837b0e7a4a6bc65783623 (tree) |
---|---|
Time | 2008-01-01 23:43:35 |
Author | vimboss |
Commiter | vimboss |
updated for version 7.1-178
@@ -2319,7 +2319,9 @@ | ||
2319 | 2319 | #endif |
2320 | 2320 | while ((p = vim_strchr(p, '/')) != NULL) |
2321 | 2321 | { |
2322 | - if (p[1] == '/') | |
2322 | + /* accept a double /, unless it's preceded with * and followed by *, | |
2323 | + * because * / / * is an end and start of a C comment */ | |
2324 | + if (p[1] == '/' && (p == line || p[-1] != '*' || p[2] != '*')) | |
2323 | 2325 | break; |
2324 | 2326 | ++p; |
2325 | 2327 | } |
@@ -667,6 +667,8 @@ | ||
667 | 667 | static int included_patches[] = |
668 | 668 | { /* Add new patch number below this line */ |
669 | 669 | /**/ |
670 | + 178, | |
671 | +/**/ | |
670 | 672 | 177, |
671 | 673 | /**/ |
672 | 674 | 176, |