|
Karsten Hopp |
195918 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
195918 |
Subject: Patch 7.3.179
|
|
Karsten Hopp |
195918 |
Fcc: outbox
|
|
Karsten Hopp |
195918 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
195918 |
Mime-Version: 1.0
|
|
Karsten Hopp |
195918 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
195918 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
195918 |
------------
|
|
Karsten Hopp |
195918 |
|
|
Karsten Hopp |
195918 |
Patch 7.3.179
|
|
Karsten Hopp |
195918 |
Problem: C-indent doesn't handle colon in string correctly.
|
|
Karsten Hopp |
195918 |
Solution: Skip the string. (Lech Lorens)
|
|
Karsten Hopp |
195918 |
Files: src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok
|
|
Karsten Hopp |
195918 |
|
|
Karsten Hopp |
195918 |
|
|
Karsten Hopp |
195918 |
*** ../vim-7.3.178/src/misc1.c 2011-05-10 11:39:13.000000000 +0200
|
|
Karsten Hopp |
195918 |
--- src/misc1.c 2011-05-10 11:50:14.000000000 +0200
|
|
Karsten Hopp |
195918 |
***************
|
|
Karsten Hopp |
195918 |
*** 5801,5807 ****
|
|
Karsten Hopp |
195918 |
continue;
|
|
Karsten Hopp |
195918 |
}
|
|
Karsten Hopp |
195918 |
|
|
Karsten Hopp |
195918 |
! if (s[0] == ':')
|
|
Karsten Hopp |
195918 |
{
|
|
Karsten Hopp |
195918 |
if (s[1] == ':')
|
|
Karsten Hopp |
195918 |
{
|
|
Karsten Hopp |
195918 |
--- 5801,5809 ----
|
|
Karsten Hopp |
195918 |
continue;
|
|
Karsten Hopp |
195918 |
}
|
|
Karsten Hopp |
195918 |
|
|
Karsten Hopp |
195918 |
! if (s[0] == '"')
|
|
Karsten Hopp |
195918 |
! s = skip_string(s) + 1;
|
|
Karsten Hopp |
195918 |
! else if (s[0] == ':')
|
|
Karsten Hopp |
195918 |
{
|
|
Karsten Hopp |
195918 |
if (s[1] == ':')
|
|
Karsten Hopp |
195918 |
{
|
|
Karsten Hopp |
195918 |
*** ../vim-7.3.178/src/testdir/test3.in 2011-05-10 11:39:13.000000000 +0200
|
|
Karsten Hopp |
195918 |
--- src/testdir/test3.in 2011-05-10 11:53:02.000000000 +0200
|
|
Karsten Hopp |
195918 |
***************
|
|
Karsten Hopp |
195918 |
*** 1360,1365 ****
|
|
Karsten Hopp |
195918 |
--- 1360,1378 ----
|
|
Karsten Hopp |
195918 |
}
|
|
Karsten Hopp |
195918 |
|
|
Karsten Hopp |
195918 |
STARTTEST
|
|
Karsten Hopp |
195918 |
+ :set cino&
|
|
Karsten Hopp |
195918 |
+ 2kdd=][
|
|
Karsten Hopp |
195918 |
+ ENDTEST
|
|
Karsten Hopp |
195918 |
+
|
|
Karsten Hopp |
195918 |
+ void func(void)
|
|
Karsten Hopp |
195918 |
+ {
|
|
Karsten Hopp |
195918 |
+ cout << "a"
|
|
Karsten Hopp |
195918 |
+ << "b"
|
|
Karsten Hopp |
195918 |
+ << ") :"
|
|
Karsten Hopp |
195918 |
+ << "c";
|
|
Karsten Hopp |
195918 |
+ }
|
|
Karsten Hopp |
195918 |
+
|
|
Karsten Hopp |
195918 |
+ STARTTEST
|
|
Karsten Hopp |
195918 |
:g/^STARTTEST/.,/^ENDTEST/d
|
|
Karsten Hopp |
195918 |
:1;/start of AUTO/,$wq! test.out
|
|
Karsten Hopp |
195918 |
ENDTEST
|
|
Karsten Hopp |
195918 |
*** ../vim-7.3.178/src/testdir/test3.ok 2011-05-10 11:39:13.000000000 +0200
|
|
Karsten Hopp |
195918 |
--- src/testdir/test3.ok 2011-05-10 11:50:14.000000000 +0200
|
|
Karsten Hopp |
195918 |
***************
|
|
Karsten Hopp |
195918 |
*** 1216,1218 ****
|
|
Karsten Hopp |
195918 |
--- 1216,1227 ----
|
|
Karsten Hopp |
195918 |
printf("Foo!\n");
|
|
Karsten Hopp |
195918 |
}
|
|
Karsten Hopp |
195918 |
|
|
Karsten Hopp |
195918 |
+
|
|
Karsten Hopp |
195918 |
+ void func(void)
|
|
Karsten Hopp |
195918 |
+ {
|
|
Karsten Hopp |
195918 |
+ cout << "a"
|
|
Karsten Hopp |
195918 |
+ << "b"
|
|
Karsten Hopp |
195918 |
+ << ") :"
|
|
Karsten Hopp |
195918 |
+ << "c";
|
|
Karsten Hopp |
195918 |
+ }
|
|
Karsten Hopp |
195918 |
+
|
|
Karsten Hopp |
195918 |
*** ../vim-7.3.178/src/version.c 2011-05-10 11:39:13.000000000 +0200
|
|
Karsten Hopp |
195918 |
--- src/version.c 2011-05-10 11:53:36.000000000 +0200
|
|
Karsten Hopp |
195918 |
***************
|
|
Karsten Hopp |
195918 |
*** 716,717 ****
|
|
Karsten Hopp |
195918 |
--- 716,719 ----
|
|
Karsten Hopp |
195918 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
195918 |
+ /**/
|
|
Karsten Hopp |
195918 |
+ 179,
|
|
Karsten Hopp |
195918 |
/**/
|
|
Karsten Hopp |
195918 |
|
|
Karsten Hopp |
195918 |
--
|
|
Karsten Hopp |
195918 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
195918 |
71. You wonder how people walk
|
|
Karsten Hopp |
195918 |
|
|
Karsten Hopp |
195918 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
195918 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
195918 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
195918 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|