|
Karsten Hopp |
f16c75 |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
f16c75 |
Subject: Patch 7.4.912
|
|
Karsten Hopp |
f16c75 |
Fcc: outbox
|
|
Karsten Hopp |
f16c75 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
f16c75 |
Mime-Version: 1.0
|
|
Karsten Hopp |
f16c75 |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
f16c75 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
f16c75 |
------------
|
|
Karsten Hopp |
f16c75 |
|
|
Karsten Hopp |
f16c75 |
Patch 7.4.912
|
|
Karsten Hopp |
f16c75 |
Problem: Wrong indenting for C++ constructor.
|
|
Karsten Hopp |
f16c75 |
Solution: Recognize ::. (Anhong)
|
|
Karsten Hopp |
f16c75 |
Files: src/misc1.c, src/testdir/test3.in, src/testdir/test3.ok
|
|
Karsten Hopp |
f16c75 |
|
|
Karsten Hopp |
f16c75 |
|
|
Karsten Hopp |
f16c75 |
*** ../vim-7.4.911/src/misc1.c 2015-10-31 15:32:48.178832586 +0100
|
|
Karsten Hopp |
f16c75 |
--- src/misc1.c 2015-11-10 14:04:38.410497286 +0100
|
|
Karsten Hopp |
f16c75 |
***************
|
|
Karsten Hopp |
f16c75 |
*** 6250,6255 ****
|
|
Karsten Hopp |
f16c75 |
--- 6250,6268 ----
|
|
Karsten Hopp |
f16c75 |
{
|
|
Karsten Hopp |
f16c75 |
if (cin_iscomment(s)) /* ignore comments */
|
|
Karsten Hopp |
f16c75 |
s = cin_skipcomment(s);
|
|
Karsten Hopp |
f16c75 |
+ else if (*s == ':')
|
|
Karsten Hopp |
f16c75 |
+ {
|
|
Karsten Hopp |
f16c75 |
+ if (*(s + 1) == ':')
|
|
Karsten Hopp |
f16c75 |
+ s += 2;
|
|
Karsten Hopp |
f16c75 |
+ else
|
|
Karsten Hopp |
f16c75 |
+ /* To avoid a mistake in the following situation:
|
|
Karsten Hopp |
f16c75 |
+ * A::A(int a, int b)
|
|
Karsten Hopp |
f16c75 |
+ * : a(0) // <--not a function decl
|
|
Karsten Hopp |
f16c75 |
+ * , b(0)
|
|
Karsten Hopp |
f16c75 |
+ * {...
|
|
Karsten Hopp |
f16c75 |
+ */
|
|
Karsten Hopp |
f16c75 |
+ return FALSE;
|
|
Karsten Hopp |
f16c75 |
+ }
|
|
Karsten Hopp |
f16c75 |
else
|
|
Karsten Hopp |
f16c75 |
++s;
|
|
Karsten Hopp |
f16c75 |
}
|
|
Karsten Hopp |
f16c75 |
*** ../vim-7.4.911/src/testdir/test3.in 2015-10-13 16:13:33.456731872 +0200
|
|
Karsten Hopp |
f16c75 |
--- src/testdir/test3.in 2015-11-10 13:56:14.111567383 +0100
|
|
Karsten Hopp |
f16c75 |
***************
|
|
Karsten Hopp |
f16c75 |
*** 663,668 ****
|
|
Karsten Hopp |
f16c75 |
--- 663,675 ----
|
|
Karsten Hopp |
f16c75 |
{
|
|
Karsten Hopp |
f16c75 |
}
|
|
Karsten Hopp |
f16c75 |
|
|
Karsten Hopp |
f16c75 |
+ A::A(int a, int b)
|
|
Karsten Hopp |
f16c75 |
+ : aa(a),
|
|
Karsten Hopp |
f16c75 |
+ bb(b),
|
|
Karsten Hopp |
f16c75 |
+ cc(c)
|
|
Karsten Hopp |
f16c75 |
+ {
|
|
Karsten Hopp |
f16c75 |
+ }
|
|
Karsten Hopp |
f16c75 |
+
|
|
Karsten Hopp |
f16c75 |
class CAbc :
|
|
Karsten Hopp |
f16c75 |
public BaseClass1,
|
|
Karsten Hopp |
f16c75 |
protected BaseClass2
|
|
Karsten Hopp |
f16c75 |
*** ../vim-7.4.911/src/testdir/test3.ok 2015-10-13 16:13:33.456731872 +0200
|
|
Karsten Hopp |
f16c75 |
--- src/testdir/test3.ok 2015-11-10 13:56:40.763299376 +0100
|
|
Karsten Hopp |
f16c75 |
***************
|
|
Karsten Hopp |
f16c75 |
*** 651,656 ****
|
|
Karsten Hopp |
f16c75 |
--- 651,663 ----
|
|
Karsten Hopp |
f16c75 |
{
|
|
Karsten Hopp |
f16c75 |
}
|
|
Karsten Hopp |
f16c75 |
|
|
Karsten Hopp |
f16c75 |
+ A::A(int a, int b)
|
|
Karsten Hopp |
f16c75 |
+ : aa(a),
|
|
Karsten Hopp |
f16c75 |
+ bb(b),
|
|
Karsten Hopp |
f16c75 |
+ cc(c)
|
|
Karsten Hopp |
f16c75 |
+ {
|
|
Karsten Hopp |
f16c75 |
+ }
|
|
Karsten Hopp |
f16c75 |
+
|
|
Karsten Hopp |
f16c75 |
class CAbc :
|
|
Karsten Hopp |
f16c75 |
public BaseClass1,
|
|
Karsten Hopp |
f16c75 |
protected BaseClass2
|
|
Karsten Hopp |
f16c75 |
*** ../vim-7.4.911/src/version.c 2015-11-10 13:30:34.999047749 +0100
|
|
Karsten Hopp |
f16c75 |
--- src/version.c 2015-11-10 13:59:59.041305722 +0100
|
|
Karsten Hopp |
f16c75 |
***************
|
|
Karsten Hopp |
f16c75 |
*** 743,744 ****
|
|
Karsten Hopp |
f16c75 |
--- 743,746 ----
|
|
Karsten Hopp |
f16c75 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
f16c75 |
+ /**/
|
|
Karsten Hopp |
f16c75 |
+ 912,
|
|
Karsten Hopp |
f16c75 |
/**/
|
|
Karsten Hopp |
f16c75 |
|
|
Karsten Hopp |
f16c75 |
--
|
|
Karsten Hopp |
f16c75 |
From "know your smileys":
|
|
Karsten Hopp |
f16c75 |
+<(:-) The Pope
|
|
Karsten Hopp |
f16c75 |
|
|
Karsten Hopp |
f16c75 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
f16c75 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
f16c75 |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
f16c75 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|