Mercurial > vim
comparison src/search.c @ 1463:e6a8d55a1626 v7.1.178
updated for version 7.1-178
author | vimboss |
---|---|
date | Tue, 01 Jan 2008 14:43:35 +0000 |
parents | 843bfffb04c7 |
children | 29c09fa57168 |
comparison
equal
deleted
inserted
replaced
1462:ceaf71b15d81 | 1463:e6a8d55a1626 |
---|---|
2317 } | 2317 } |
2318 else | 2318 else |
2319 #endif | 2319 #endif |
2320 while ((p = vim_strchr(p, '/')) != NULL) | 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 break; | 2325 break; |
2324 ++p; | 2326 ++p; |
2325 } | 2327 } |
2326 | 2328 |
2327 if (p == NULL) | 2329 if (p == NULL) |