lkundrak / rpms / vim

Forked from rpms/vim 4 years ago
Clone
aae024d
To: vim-dev@vim.org
aae024d
Subject: Patch 7.0.109
aae024d
Fcc: outbox
aae024d
From: Bram Moolenaar <Bram@moolenaar.net>
aae024d
Mime-Version: 1.0
aae024d
Content-Type: text/plain; charset=ISO-8859-1
aae024d
Content-Transfer-Encoding: 8bit
aae024d
------------
aae024d
aae024d
Patch 7.0.109
aae024d
Problem:    Lisp indenting is confused by escaped quotes in strings. (Dorai
aae024d
	    Sitaram)
aae024d
Solution:   Check for backslash inside strings. (Sergey Khorev)
aae024d
Files:	    src/misc1.c
aae024d
aae024d
aae024d
*** ../vim-7.0.108/src/misc1.c	Tue Sep  5 20:56:11 2006
aae024d
--- src/misc1.c	Wed Sep 13 20:13:57 2006
aae024d
***************
aae024d
*** 8074,8082 ****
aae024d
  		}
aae024d
  		if (*that == '"' && *(that + 1) != NUL)
aae024d
  		{
aae024d
! 		    that++;
aae024d
! 		    while (*that && (*that != '"' || *(that - 1) == '\\'))
aae024d
! 			++that;
aae024d
  		}
aae024d
  		if (*that == '(' || *that == '[')
aae024d
  		    ++parencount;
aae024d
--- 8074,8093 ----
aae024d
  		}
aae024d
  		if (*that == '"' && *(that + 1) != NUL)
aae024d
  		{
aae024d
! 		    while (*++that && *that != '"')
aae024d
! 		    {
aae024d
! 			/* skipping escaped characters in the string */
aae024d
! 			if (*that == '\\')
aae024d
! 			{
aae024d
! 			    if (*++that == NUL)
aae024d
! 				break;
aae024d
! 			    if (that[1] == NUL)
aae024d
! 			    {
aae024d
! 				++that;
aae024d
! 				break;
aae024d
! 			    }
aae024d
! 			}
aae024d
! 		    }
aae024d
  		}
aae024d
  		if (*that == '(' || *that == '[')
aae024d
  		    ++parencount;
aae024d
*** ../vim-7.0.108/src/version.c	Thu Sep 14 21:36:35 2006
aae024d
--- src/version.c	Fri Sep 15 20:15:40 2006
aae024d
***************
aae024d
*** 668,669 ****
aae024d
--- 668,671 ----
aae024d
  {   /* Add new patch number below this line */
aae024d
+ /**/
aae024d
+     109,
aae024d
  /**/
aae024d
aae024d
-- 
aae024d
ARTHUR:  No, hang on!  Just answer the five questions ...
aae024d
GALAHAD: Three questions ...
aae024d
ARTHUR:  Three questions ...  And we shall watch ... and pray.
aae024d
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
aae024d
aae024d
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
aae024d
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
aae024d
\\\        download, build and distribute -- http://www.A-A-P.org        ///
aae024d
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///