jkunstle / rpms / vim

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