[BACK]Return to regexp.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / vim

Diff for /src/usr.bin/vim/Attic/regexp.c between version 1.1 and 1.2

version 1.1, 1996/09/07 21:40:25 version 1.2, 1996/09/21 06:23:17
Line 36 
Line 36 
  * regular-expression syntax might require a total rethink.   * regular-expression syntax might require a total rethink.
  *   *
  * $Log$   * $Log$
  * Revision 1.1  1996/09/07 21:40:25  downsj   * Revision 1.2  1996/09/21 06:23:17  downsj
  * Initial revision   * update to vim 4.4beta
  *   *
    * Revision 1.1.1.1  1996/09/07 21:40:25  downsj
    * Initial import of vim 4.2.
    *
    * This is meant to replace nvi in the tree.  Vim, in general, works better,
    * provides more features, and does not suffer from the license problems
    * being imposed upon nvi.
    *
    * On the other hand, vim lacks a non-visual ex mode, in addition to open mode.
    *
    * This includes the GUI (X11) code, but doesn't try to compile it.
    *
  * Revision 1.2  88/04/28  08:09:45  tony   * Revision 1.2  88/04/28  08:09:45  tony
  * First modification of the regexp library. Added an external variable   * First modification of the regexp library. Added an external variable
  * 'reg_ic' which can be set to indicate that case should be ignored.   * 'reg_ic' which can be set to indicate that case should be ignored.
Line 300 
Line 311 
         {          {
                 if (p[0] == dirc && !in_range)          /* found end of regexp */                  if (p[0] == dirc && !in_range)          /* found end of regexp */
                         break;                          break;
                 if ((p[0] == '[' && p_magic) || (p[0] == '\\' && p[1] == '[' && !p_magic))                  if (!in_range && ((p[0] == '[' && p_magic) ||
                                                                      (p[0] == '\\' && p[1] == '[' && !p_magic)))
                 {                  {
                         in_range = TRUE;                          in_range = TRUE;
                         if (p[0] == '\\')                          if (p[0] == '\\')

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2