jkunstle / rpms / vim

Forked from rpms/vim 3 years ago
Clone

Blame SOURCES/7.4.001

8b9a1c
To: vim_dev@googlegroups.com
8b9a1c
Subject: Patch 7.4.001
8b9a1c
Fcc: outbox
8b9a1c
From: Bram Moolenaar <Bram@moolenaar.net>
8b9a1c
Mime-Version: 1.0
8b9a1c
Content-Type: text/plain; charset=UTF-8
8b9a1c
Content-Transfer-Encoding: 8bit
8b9a1c
------------
8b9a1c
8b9a1c
Patch 7.4.001
8b9a1c
Problem:    Character classes such as [a-z] to not react to 'ignorecase'.
8b9a1c
	    Breaks man page highlighting. (Mario Grgic)
8b9a1c
Solution:   Add separate items for classes that react to 'ignorecase'.  Clean
8b9a1c
	    up logic handling character classes.  Add more tests.
8b9a1c
Files:	    src/regexp_nfa.c, src/testdir/test64.in, src/testdir/test64.ok
8b9a1c
8b9a1c
8b9a1c
*** ../vim-7.4.000/src/regexp_nfa.c	2013-08-01 18:27:51.000000000 +0200
8b9a1c
--- src/regexp_nfa.c	2013-08-14 11:49:50.000000000 +0200
8b9a1c
***************
8b9a1c
*** 29,34 ****
8b9a1c
--- 29,37 ----
8b9a1c
  # define NFA_REGEXP_DEBUG_LOG	"nfa_regexp_debug.log"
8b9a1c
  #endif
8b9a1c
  
8b9a1c
+ /* Added to NFA_ANY - NFA_NUPPER_IC to include a NL. */
8b9a1c
+ #define NFA_ADD_NL		31
8b9a1c
+ 
8b9a1c
  enum
8b9a1c
  {
8b9a1c
      NFA_SPLIT = -1024,
8b9a1c
***************
8b9a1c
*** 183,188 ****
8b9a1c
--- 186,198 ----
8b9a1c
      NFA_NLOWER,		/*	Match non-lowercase char */
8b9a1c
      NFA_UPPER,		/*	Match uppercase char */
8b9a1c
      NFA_NUPPER,		/*	Match non-uppercase char */
8b9a1c
+     NFA_LOWER_IC,	/*	Match [a-z] */
8b9a1c
+     NFA_NLOWER_IC,	/*	Match [^a-z] */
8b9a1c
+     NFA_UPPER_IC,	/*	Match [A-Z] */
8b9a1c
+     NFA_NUPPER_IC,	/*	Match [^A-Z] */
8b9a1c
+ 
8b9a1c
+     NFA_FIRST_NL = NFA_ANY + NFA_ADD_NL,
8b9a1c
+     NFA_LAST_NL = NFA_NUPPER_IC + NFA_ADD_NL,
8b9a1c
  
8b9a1c
      NFA_CURSOR,		/*	Match cursor pos */
8b9a1c
      NFA_LNUM,		/*	Match line number */
8b9a1c
***************
8b9a1c
*** 199,207 ****
8b9a1c
      NFA_MARK_LT,	/*	Match < mark */
8b9a1c
      NFA_VISUAL,		/*	Match Visual area */
8b9a1c
  
8b9a1c
-     NFA_FIRST_NL = NFA_ANY + ADD_NL,
8b9a1c
-     NFA_LAST_NL = NFA_NUPPER + ADD_NL,
8b9a1c
- 
8b9a1c
      /* Character classes [:alnum:] etc */
8b9a1c
      NFA_CLASS_ALNUM,
8b9a1c
      NFA_CLASS_ALPHA,
8b9a1c
--- 209,214 ----
8b9a1c
***************
8b9a1c
*** 578,583 ****
8b9a1c
--- 585,592 ----
8b9a1c
   * On failure, return 0 (=FAIL)
8b9a1c
   * Start points to the first char of the range, while end should point
8b9a1c
   * to the closing brace.
8b9a1c
+  * Keep in mind that 'ignorecase' applies at execution time, thus [a-z] may
8b9a1c
+  * need to be interpreted as [a-zA-Z].
8b9a1c
   */
8b9a1c
      static int
8b9a1c
  nfa_recognize_char_class(start, end, extra_newl)
8b9a1c
***************
8b9a1c
*** 681,687 ****
8b9a1c
  	return FAIL;
8b9a1c
  
8b9a1c
      if (newl == TRUE)
8b9a1c
! 	extra_newl = ADD_NL;
8b9a1c
  
8b9a1c
      switch (config)
8b9a1c
      {
8b9a1c
--- 690,696 ----
8b9a1c
  	return FAIL;
8b9a1c
  
8b9a1c
      if (newl == TRUE)
8b9a1c
! 	extra_newl = NFA_ADD_NL;
8b9a1c
  
8b9a1c
      switch (config)
8b9a1c
      {
8b9a1c
***************
8b9a1c
*** 710,722 ****
8b9a1c
  	case CLASS_not | CLASS_az | CLASS_AZ:
8b9a1c
  	    return extra_newl + NFA_NALPHA;
8b9a1c
  	case CLASS_az:
8b9a1c
! 	   return extra_newl + NFA_LOWER;
8b9a1c
  	case CLASS_not | CLASS_az:
8b9a1c
! 	    return extra_newl + NFA_NLOWER;
8b9a1c
  	case CLASS_AZ:
8b9a1c
! 	    return extra_newl + NFA_UPPER;
8b9a1c
  	case CLASS_not | CLASS_AZ:
8b9a1c
! 	    return extra_newl + NFA_NUPPER;
8b9a1c
      }
8b9a1c
      return FAIL;
8b9a1c
  }
8b9a1c
--- 719,731 ----
8b9a1c
  	case CLASS_not | CLASS_az | CLASS_AZ:
8b9a1c
  	    return extra_newl + NFA_NALPHA;
8b9a1c
  	case CLASS_az:
8b9a1c
! 	   return extra_newl + NFA_LOWER_IC;
8b9a1c
  	case CLASS_not | CLASS_az:
8b9a1c
! 	    return extra_newl + NFA_NLOWER_IC;
8b9a1c
  	case CLASS_AZ:
8b9a1c
! 	    return extra_newl + NFA_UPPER_IC;
8b9a1c
  	case CLASS_not | CLASS_AZ:
8b9a1c
! 	    return extra_newl + NFA_NUPPER_IC;
8b9a1c
      }
8b9a1c
      return FAIL;
8b9a1c
  }
8b9a1c
***************
8b9a1c
*** 914,920 ****
8b9a1c
  		break;
8b9a1c
  	    }
8b9a1c
  
8b9a1c
! 	    extra = ADD_NL;
8b9a1c
  
8b9a1c
  	    /* "\_[" is collection plus newline */
8b9a1c
  	    if (c == '[')
8b9a1c
--- 923,929 ----
8b9a1c
  		break;
8b9a1c
  	    }
8b9a1c
  
8b9a1c
! 	    extra = NFA_ADD_NL;
8b9a1c
  
8b9a1c
  	    /* "\_[" is collection plus newline */
8b9a1c
  	    if (c == '[')
8b9a1c
***************
8b9a1c
*** 970,976 ****
8b9a1c
  	    }
8b9a1c
  #endif
8b9a1c
  	    EMIT(nfa_classcodes[p - classchars]);
8b9a1c
! 	    if (extra == ADD_NL)
8b9a1c
  	    {
8b9a1c
  		EMIT(NFA_NEWL);
8b9a1c
  		EMIT(NFA_OR);
8b9a1c
--- 979,985 ----
8b9a1c
  	    }
8b9a1c
  #endif
8b9a1c
  	    EMIT(nfa_classcodes[p - classchars]);
8b9a1c
! 	    if (extra == NFA_ADD_NL)
8b9a1c
  	    {
8b9a1c
  		EMIT(NFA_NEWL);
8b9a1c
  		EMIT(NFA_OR);
8b9a1c
***************
8b9a1c
*** 1240,1260 ****
8b9a1c
  	    {
8b9a1c
  		/*
8b9a1c
  		 * Try to reverse engineer character classes. For example,
8b9a1c
! 		 * recognize that [0-9] stands for  \d and [A-Za-z_] with \h,
8b9a1c
  		 * and perform the necessary substitutions in the NFA.
8b9a1c
  		 */
8b9a1c
  		result = nfa_recognize_char_class(regparse, endp,
8b9a1c
! 							    extra == ADD_NL);
8b9a1c
  		if (result != FAIL)
8b9a1c
  		{
8b9a1c
! 		    if (result >= NFA_DIGIT && result <= NFA_NUPPER)
8b9a1c
! 			EMIT(result);
8b9a1c
! 		    else	/* must be char class + newline */
8b9a1c
  		    {
8b9a1c
! 			EMIT(result - ADD_NL);
8b9a1c
  			EMIT(NFA_NEWL);
8b9a1c
  			EMIT(NFA_OR);
8b9a1c
  		    }
8b9a1c
  		    regparse = endp;
8b9a1c
  		    mb_ptr_adv(regparse);
8b9a1c
  		    return OK;
8b9a1c
--- 1249,1269 ----
8b9a1c
  	    {
8b9a1c
  		/*
8b9a1c
  		 * Try to reverse engineer character classes. For example,
8b9a1c
! 		 * recognize that [0-9] stands for \d and [A-Za-z_] for \h,
8b9a1c
  		 * and perform the necessary substitutions in the NFA.
8b9a1c
  		 */
8b9a1c
  		result = nfa_recognize_char_class(regparse, endp,
8b9a1c
! 							 extra == NFA_ADD_NL);
8b9a1c
  		if (result != FAIL)
8b9a1c
  		{
8b9a1c
! 		    if (result >= NFA_FIRST_NL && result <= NFA_LAST_NL)
8b9a1c
  		    {
8b9a1c
! 			EMIT(result - NFA_ADD_NL);
8b9a1c
  			EMIT(NFA_NEWL);
8b9a1c
  			EMIT(NFA_OR);
8b9a1c
  		    }
8b9a1c
+ 		    else
8b9a1c
+ 			EMIT(result);
8b9a1c
  		    regparse = endp;
8b9a1c
  		    mb_ptr_adv(regparse);
8b9a1c
  		    return OK;
8b9a1c
***************
8b9a1c
*** 1504,1510 ****
8b9a1c
  			     * collection, add an OR below. But not for negated
8b9a1c
  			     * range. */
8b9a1c
  			    if (!negated)
8b9a1c
! 				extra = ADD_NL;
8b9a1c
  			}
8b9a1c
  			else
8b9a1c
  			{
8b9a1c
--- 1513,1519 ----
8b9a1c
  			     * collection, add an OR below. But not for negated
8b9a1c
  			     * range. */
8b9a1c
  			    if (!negated)
8b9a1c
! 				extra = NFA_ADD_NL;
8b9a1c
  			}
8b9a1c
  			else
8b9a1c
  			{
8b9a1c
***************
8b9a1c
*** 1537,1543 ****
8b9a1c
  		    EMIT(NFA_END_COLL);
8b9a1c
  
8b9a1c
  		/* \_[] also matches \n but it's not negated */
8b9a1c
! 		if (extra == ADD_NL)
8b9a1c
  		{
8b9a1c
  		    EMIT(reg_string ? NL : NFA_NEWL);
8b9a1c
  		    EMIT(NFA_OR);
8b9a1c
--- 1546,1552 ----
8b9a1c
  		    EMIT(NFA_END_COLL);
8b9a1c
  
8b9a1c
  		/* \_[] also matches \n but it's not negated */
8b9a1c
! 		if (extra == NFA_ADD_NL)
8b9a1c
  		{
8b9a1c
  		    EMIT(reg_string ? NL : NFA_NEWL);
8b9a1c
  		    EMIT(NFA_OR);
8b9a1c
***************
8b9a1c
*** 2011,2017 ****
8b9a1c
      if (c >= NFA_FIRST_NL && c <= NFA_LAST_NL)
8b9a1c
      {
8b9a1c
  	addnl = TRUE;
8b9a1c
! 	c -= ADD_NL;
8b9a1c
      }
8b9a1c
  
8b9a1c
      STRCPY(code, "");
8b9a1c
--- 2020,2026 ----
8b9a1c
      if (c >= NFA_FIRST_NL && c <= NFA_LAST_NL)
8b9a1c
      {
8b9a1c
  	addnl = TRUE;
8b9a1c
! 	c -= NFA_ADD_NL;
8b9a1c
      }
8b9a1c
  
8b9a1c
      STRCPY(code, "");
8b9a1c
***************
8b9a1c
*** 2217,2222 ****
8b9a1c
--- 2226,2235 ----
8b9a1c
  	case NFA_NLOWER:STRCPY(code, "NFA_NLOWER"); break;
8b9a1c
  	case NFA_UPPER:	STRCPY(code, "NFA_UPPER"); break;
8b9a1c
  	case NFA_NUPPER:STRCPY(code, "NFA_NUPPER"); break;
8b9a1c
+ 	case NFA_LOWER_IC:  STRCPY(code, "NFA_LOWER_IC"); break;
8b9a1c
+ 	case NFA_NLOWER_IC: STRCPY(code, "NFA_NLOWER_IC"); break;
8b9a1c
+ 	case NFA_UPPER_IC:  STRCPY(code, "NFA_UPPER_IC"); break;
8b9a1c
+ 	case NFA_NUPPER_IC: STRCPY(code, "NFA_NUPPER_IC"); break;
8b9a1c
  
8b9a1c
  	default:
8b9a1c
  	    STRCPY(code, "CHAR(x)");
8b9a1c
***************
8b9a1c
*** 2687,2692 ****
8b9a1c
--- 2700,2709 ----
8b9a1c
  	    case NFA_NLOWER:
8b9a1c
  	    case NFA_UPPER:
8b9a1c
  	    case NFA_NUPPER:
8b9a1c
+ 	    case NFA_LOWER_IC:
8b9a1c
+ 	    case NFA_NLOWER_IC:
8b9a1c
+ 	    case NFA_UPPER_IC:
8b9a1c
+ 	    case NFA_NUPPER_IC:
8b9a1c
  		/* possibly non-ascii */
8b9a1c
  #ifdef FEAT_MBYTE
8b9a1c
  		if (has_mbyte)
8b9a1c
***************
8b9a1c
*** 3841,3846 ****
8b9a1c
--- 3858,3867 ----
8b9a1c
  	    case NFA_NLOWER:
8b9a1c
  	    case NFA_UPPER:
8b9a1c
  	    case NFA_NUPPER:
8b9a1c
+ 	    case NFA_LOWER_IC:
8b9a1c
+ 	    case NFA_NLOWER_IC:
8b9a1c
+ 	    case NFA_UPPER_IC:
8b9a1c
+ 	    case NFA_NUPPER_IC:
8b9a1c
  	    case NFA_START_COLL:
8b9a1c
  	    case NFA_START_NEG_COLL:
8b9a1c
  	    case NFA_NEWL:
8b9a1c
***************
8b9a1c
*** 5872,5877 ****
8b9a1c
--- 5893,5920 ----
8b9a1c
  		ADD_STATE_IF_MATCH(t->state);
8b9a1c
  		break;
8b9a1c
  
8b9a1c
+ 	    case NFA_LOWER_IC:	/* [a-z] */
8b9a1c
+ 		result = ri_lower(curc) || (ireg_ic && ri_upper(curc));
8b9a1c
+ 		ADD_STATE_IF_MATCH(t->state);
8b9a1c
+ 		break;
8b9a1c
+ 
8b9a1c
+ 	    case NFA_NLOWER_IC:	/* [^a-z] */
8b9a1c
+ 		result = curc != NUL
8b9a1c
+ 			  && !(ri_lower(curc) || (ireg_ic && ri_upper(curc)));
8b9a1c
+ 		ADD_STATE_IF_MATCH(t->state);
8b9a1c
+ 		break;
8b9a1c
+ 
8b9a1c
+ 	    case NFA_UPPER_IC:	/* [A-Z] */
8b9a1c
+ 		result = ri_upper(curc) || (ireg_ic && ri_lower(curc));
8b9a1c
+ 		ADD_STATE_IF_MATCH(t->state);
8b9a1c
+ 		break;
8b9a1c
+ 
8b9a1c
+ 	    case NFA_NUPPER_IC:	/* ^[A-Z] */
8b9a1c
+ 		result = curc != NUL
8b9a1c
+ 			  && !(ri_upper(curc) || (ireg_ic && ri_lower(curc)));
8b9a1c
+ 		ADD_STATE_IF_MATCH(t->state);
8b9a1c
+ 		break;
8b9a1c
+ 
8b9a1c
  	    case NFA_BACKREF1:
8b9a1c
  	    case NFA_BACKREF2:
8b9a1c
  	    case NFA_BACKREF3:
8b9a1c
*** ../vim-7.4.000/src/testdir/test64.in	2013-08-01 17:45:33.000000000 +0200
8b9a1c
--- src/testdir/test64.in	2013-08-14 11:50:11.000000000 +0200
8b9a1c
***************
8b9a1c
*** 289,303 ****
8b9a1c
  :call add(tl, [2, '.a\%$', " a\n "])
8b9a1c
  :call add(tl, [2, '.a\%$', " a\n_a", "_a"])
8b9a1c
  :"
8b9a1c
! :"""" Test recognition of some character classes
8b9a1c
! :call add(tl, [2, '[0-9]', '8', '8'])
8b9a1c
! :call add(tl, [2, '[^0-9]', '8'])
8b9a1c
! :call add(tl, [2, '[0-9a-fA-F]*', '0a7', '0a7'])
8b9a1c
! :call add(tl, [2, '[^0-9A-Fa-f]\+', '0a7'])
8b9a1c
! :call add(tl, [2, '[a-z_A-Z0-9]\+', 'aso_sfoij', 'aso_sfoij'])
8b9a1c
! :call add(tl, [2, '[a-z]', 'a', 'a'])
8b9a1c
! :call add(tl, [2, '[a-zA-Z]', 'a', 'a'])
8b9a1c
! :call add(tl, [2, '[A-Z]', 'a'])
8b9a1c
  :call add(tl, [2, '\C[^A-Z]\+', 'ABCOIJDEOIFNSD jsfoij sa', ' jsfoij sa'])
8b9a1c
  :"
8b9a1c
  :"""" Tests for \z features
8b9a1c
--- 289,317 ----
8b9a1c
  :call add(tl, [2, '.a\%$', " a\n "])
8b9a1c
  :call add(tl, [2, '.a\%$', " a\n_a", "_a"])
8b9a1c
  :"
8b9a1c
! :"""" Test recognition of character classes
8b9a1c
! :call add(tl, [2, '[0-7]\+', 'x0123456789x', '01234567'])
8b9a1c
! :call add(tl, [2, '[^0-7]\+', '0a;X+% 897', 'a;X+% 89'])
8b9a1c
! :call add(tl, [2, '[0-9]\+', 'x0123456789x', '0123456789'])
8b9a1c
! :call add(tl, [2, '[^0-9]\+', '0a;X+% 9', 'a;X+% '])
8b9a1c
! :call add(tl, [2, '[0-9a-fA-F]\+', 'x0189abcdefg', '0189abcdef'])
8b9a1c
! :call add(tl, [2, '[^0-9A-Fa-f]\+', '0189g;X+% ab', 'g;X+% '])
8b9a1c
! :call add(tl, [2, '[a-z_A-Z0-9]\+', ';+aso_SfOij ', 'aso_SfOij'])
8b9a1c
! :call add(tl, [2, '[^a-z_A-Z0-9]\+', 'aSo_;+% sfOij', ';+% '])
8b9a1c
! :call add(tl, [2, '[a-z_A-Z]\+', '0abyz_ABYZ;', 'abyz_ABYZ'])
8b9a1c
! :call add(tl, [2, '[^a-z_A-Z]\+', 'abAB_09;+% yzYZ', '09;+% '])
8b9a1c
! :call add(tl, [2, '[a-z]\+', '0abcxyz1', 'abcxyz'])
8b9a1c
! :call add(tl, [2, '[a-z]\+', 'AabxyzZ', 'abxyz'])
8b9a1c
! :call add(tl, [2, '[^a-z]\+', 'a;X09+% x', ';X09+% '])
8b9a1c
! :call add(tl, [2, '[^a-z]\+', 'abX0;%yz', 'X0;%'])
8b9a1c
! :call add(tl, [2, '[a-zA-Z]\+', '0abABxzXZ9', 'abABxzXZ'])
8b9a1c
! :call add(tl, [2, '[^a-zA-Z]\+', 'ab09_;+ XZ', '09_;+ '])
8b9a1c
! :call add(tl, [2, '[A-Z]\+', 'aABXYZz', 'ABXYZ'])
8b9a1c
! :call add(tl, [2, '[^A-Z]\+', 'ABx0;%YZ', 'x0;%'])
8b9a1c
! :call add(tl, [2, '[a-z]\+\c', '0abxyzABXYZ;', 'abxyzABXYZ'])
8b9a1c
! :call add(tl, [2, '[A-Z]\+\c', '0abABxzXZ9', 'abABxzXZ'])
8b9a1c
! :call add(tl, [2, '\c[^a-z]\+', 'ab09_;+ XZ', '09_;+ '])
8b9a1c
! :call add(tl, [2, '\c[^A-Z]\+', 'ab09_;+ XZ', '09_;+ '])
8b9a1c
  :call add(tl, [2, '\C[^A-Z]\+', 'ABCOIJDEOIFNSD jsfoij sa', ' jsfoij sa'])
8b9a1c
  :"
8b9a1c
  :"""" Tests for \z features
8b9a1c
*** ../vim-7.4.000/src/testdir/test64.ok	2013-08-01 18:28:56.000000000 +0200
8b9a1c
--- src/testdir/test64.ok	2013-08-14 11:50:37.000000000 +0200
8b9a1c
***************
8b9a1c
*** 650,679 ****
8b9a1c
  OK 0 - .a\%$
8b9a1c
  OK 1 - .a\%$
8b9a1c
  OK 2 - .a\%$
8b9a1c
! OK 0 - [0-9]
8b9a1c
! OK 1 - [0-9]
8b9a1c
! OK 2 - [0-9]
8b9a1c
! OK 0 - [^0-9]
8b9a1c
! OK 1 - [^0-9]
8b9a1c
! OK 2 - [^0-9]
8b9a1c
! OK 0 - [0-9a-fA-F]*
8b9a1c
! OK 1 - [0-9a-fA-F]*
8b9a1c
! OK 2 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\+\c
8b9a1c
! OK 0 - \c[^a-z]\+
8b9a1c
! OK 1 - \c[^a-z]\+
8b9a1c
! OK 2 - \c[^a-z]\+
8b9a1c
! OK 0 - \c[^A-Z]\+
8b9a1c
! OK 1 - \c[^A-Z]\+
8b9a1c
! OK 2 - \c[^A-Z]\+
8b9a1c
  OK 0 - \C[^A-Z]\+
8b9a1c
  OK 1 - \C[^A-Z]\+
8b9a1c
  OK 2 - \C[^A-Z]\+
8b9a1c
*** ../vim-7.4.000/src/version.c	2013-08-10 13:29:20.000000000 +0200
8b9a1c
--- src/version.c	2013-08-14 11:54:57.000000000 +0200
8b9a1c
***************
8b9a1c
*** 729,730 ****
8b9a1c
--- 729,732 ----
8b9a1c
  {   /* Add new patch number below this line */
8b9a1c
+ /**/
8b9a1c
+     1,
8b9a1c
  /**/
8b9a1c
8b9a1c
-- 
8b9a1c
How many light bulbs does it take to change a person?
8b9a1c
8b9a1c
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
8b9a1c
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
8b9a1c
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
8b9a1c
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///