home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / old / 5.6.049 < prev    next >
Encoding:
Internet Message Format  |  2000-04-02  |  4.0 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 5.6.049
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 5.6.049
  8. Problem:    Documentation for [!] after ":ijump" is wrong way around. (Benji
  9.         Fisher)
  10. Solution:   Fix the documentation.  Also improve the code to check for a match
  11.         after a /* */ comment.
  12. Files:        runtime/doc/tagsearch.txt, src/search.c
  13.  
  14.  
  15. *** ../vim-5.6.48/runtime/doc/tagsearch.txt    Sun Jan 16 14:13:00 2000
  16. --- runtime/doc/tagsearch.txt    Sun Apr  2 11:54:39 2000
  17. ***************
  18. *** 1,4 ****
  19. ! *tagsearch.txt* For Vim version 5.6.  Last change: 1999 Aug 09
  20.   
  21.   
  22.             VIM REFERENCE MANUAL    by Bram Moolenaar
  23. --- 1,4 ----
  24. ! *tagsearch.txt* For Vim version 5.6.  Last change: 2000 Apr 02
  25.   
  26.   
  27.             VIM REFERENCE MANUAL    by Bram Moolenaar
  28. ***************
  29. *** 744,750 ****
  30.   
  31.                                   *:search-args*
  32.   Common arguments for the commands above:
  33. ! [!]   When included, lines that are recognized as comments are skipped.
  34.   [/]   A pattern can be surrounded by '/'.  Without '/' only whole words are
  35.         matched, using the pattern "\<pattern\>".  Only after the second '/' a
  36.         next command can be appended with '|'.  Examples:
  37. --- 744,760 ----
  38.   
  39.                                   *:search-args*
  40.   Common arguments for the commands above:
  41. ! [!]   When included, find matches in lines that are recognized as comments.
  42. !       When excluded, a match is ignored when the line is recognized as a
  43. !       comment (according to 'comments'), or the match is in a C comment (after
  44. !       "//" or inside /* */).  Note that a match may be missed if a line is
  45. !       recognized as a comment, but the comment ends halfway the line.
  46. !       And  if the line is a comment, but it is not recognized (according to
  47. !       'comments') a match may be found in it anyway.  Example:
  48. ! >        /* comment
  49. ! >           foobar */
  50. !       A match for "foobar" is found, because this line is not recognized as a
  51. !       comment (even though syntax highlighting does recognize it).
  52.   [/]   A pattern can be surrounded by '/'.  Without '/' only whole words are
  53.         matched, using the pattern "\<pattern\>".  Only after the second '/' a
  54.         next command can be appended with '|'.  Examples:
  55. *** ../vim-5.6.48/src/search.c    Mon Mar 27 13:36:17 2000
  56. --- src/search.c    Sun Apr  2 11:47:17 2000
  57. ***************
  58. *** 3442,3456 ****
  59.                * Also check for a "/ *" or "/ /" before the match.
  60.                * Skips lines like "int backwards;  / * normal index
  61.                * * /" when looking for "normal".
  62.                */
  63. !             else
  64.   #endif
  65.                   for (p = line; *p && p < startp; ++p)
  66. !                 if (p[0] == '/' && (p[1] == '*' || p[1] == '/'))
  67.                   {
  68.                       matched = FALSE;
  69. !                     break;
  70.                   }
  71.   #ifdef COMMENTS
  72.               fo_do_comments = FALSE;
  73.   #endif
  74. --- 3442,3472 ----
  75.                * Also check for a "/ *" or "/ /" before the match.
  76.                * Skips lines like "int backwards;  / * normal index
  77.                * * /" when looking for "normal".
  78. +              * Note: Doesn't skip "/ *" in comments.
  79.                */
  80. !             p = skipwhite(line);
  81. !             if (matched
  82. !                 || (p[0] == '/' && p[1] == '*') || p[0] == '*')
  83.   #endif
  84.                   for (p = line; *p && p < startp; ++p)
  85. !                 {
  86. !                 if (matched
  87. !                     && p[0] == '/'
  88. !                     && (p[1] == '*' || p[1] == '/'))
  89.                   {
  90.                       matched = FALSE;
  91. !                     /* After "//" all text is comment */
  92. !                     if (p[1] == '/')
  93. !                     break;
  94. !                     ++p;
  95.                   }
  96. +                 else if (!matched && p[0] == '*' && p[1] == '/')
  97. +                 {
  98. +                     /* Can find match after "* /". */
  99. +                     matched = TRUE;
  100. +                     ++p;
  101. +                 }
  102. +                 }
  103.   #ifdef COMMENTS
  104.               fo_do_comments = FALSE;
  105.   #endif
  106. *** ../vim-5.6.48/src/version.c    Sun Apr  2 11:57:12 2000
  107. --- src/version.c    Sun Apr  2 11:55:39 2000
  108. ***************
  109. *** 420,421 ****
  110. --- 420,423 ----
  111.   {   /* Add new patch number below this line */
  112. + /**/
  113. +     49,
  114.   /**/
  115.  
  116. -- 
  117. You can be stopped by the police for biking over 65 miles per hour.
  118. You are not allowed to walk across a street on your hands.
  119.         [real standing laws in Connecticut, United States of America]
  120.  
  121. /-/-- Bram Moolenaar --- Bram@moolenaar.net --- http://www.moolenaar.net --\-\
  122. \-\-- Vim: http://www.vim.org ---- ICCF Holland: http://www.vim.org/iccf --/-/
  123.