comparison src/quickfix.c @ 502:52e76e2b5b65 v7.0140

updated for version 7.0140
author vimboss
date Thu, 01 Sep 2005 20:46:49 +0000
parents f98374445f66
children 5ffc9de8bb26
comparison
equal deleted inserted replaced
501:ce2181d14aa0 502:52e76e2b5b65
185 { 185 {
186 char_u convchar; 186 char_u convchar;
187 char *pattern; 187 char *pattern;
188 } fmt_pat[FMT_PATTERNS] = 188 } fmt_pat[FMT_PATTERNS] =
189 { 189 {
190 {'f', "\\f\\+"}, 190 {'f', ".\\+"}, /* only used when at end */
191 {'n', "\\d\\+"}, 191 {'n', "\\d\\+"},
192 {'l', "\\d\\+"}, 192 {'l', "\\d\\+"},
193 {'c', "\\d\\+"}, 193 {'c', "\\d\\+"},
194 {'t', "."}, 194 {'t', "."},
195 {'m', ".\\+"}, 195 {'m', ".\\+"},
317 * "\%(\a:\)\=" */ 317 * "\%(\a:\)\=" */
318 STRCPY(ptr, "\\%(\\a:\\)\\="); 318 STRCPY(ptr, "\\%(\\a:\\)\\=");
319 ptr += 10; 319 ptr += 10;
320 } 320 }
321 #endif 321 #endif
322 if (*efmp == 'f' && efmp[1] != NUL 322 if (*efmp == 'f' && efmp[1] != NUL)
323 && efmp[1] != '\\' && efmp[1] != '%')
324 { 323 {
325 /* A file name may contain spaces, but this isn't in 324 if (efmp[1] != '\\' && efmp[1] != '%')
326 * "\f". For "%f:%l:%m" there may be a ":" in the 325 {
327 * file name. Use ".\{-1,}x" instead (x is the next 326 /* A file name may contain spaces, but this isn't
328 * character), the requirement that :999: follows 327 * in "\f". For "%f:%l:%m" there may be a ":" in
329 * should work. */ 328 * the file name. Use ".\{-1,}x" instead (x is
330 STRCPY(ptr, ".\\{-1,}"); 329 * the next character), the requirement that :999:
331 ptr += 7; 330 * follows should work. */
331 STRCPY(ptr, ".\\{-1,}");
332 ptr += 7;
333 }
334 else
335 {
336 /* File name followed by '\\' or '%': include as
337 * many file name chars as possible. */
338 STRCPY(ptr, "\\f\\+");
339 ptr += 4;
340 }
332 } 341 }
333 else 342 else
334 { 343 {
335 srcptr = (char_u *)fmt_pat[idx].pattern; 344 srcptr = (char_u *)fmt_pat[idx].pattern;
336 while ((*ptr = *srcptr++) != NUL) 345 while ((*ptr = *srcptr++) != NUL)