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