updated for version 7.3.179
Problem: C-indent doesn't handle colon in string correctly.
Solution: Skip the string. (Lech Lorens)
diff --git a/src/misc1.c b/src/misc1.c
index 3a94c3c..a5c4607 100644
--- a/src/misc1.c
+++ b/src/misc1.c
@@ -5801,7 +5801,9 @@
continue;
}
- if (s[0] == ':')
+ if (s[0] == '"')
+ s = skip_string(s) + 1;
+ else if (s[0] == ':')
{
if (s[1] == ':')
{
diff --git a/src/testdir/test3.in b/src/testdir/test3.in
index 8576e27..e4c6993 100644
--- a/src/testdir/test3.in
+++ b/src/testdir/test3.in
Binary files differ
diff --git a/src/testdir/test3.ok b/src/testdir/test3.ok
index 3764453..39b4859 100644
--- a/src/testdir/test3.ok
+++ b/src/testdir/test3.ok
@@ -1216,3 +1216,12 @@
printf("Foo!\n");
}
+
+void func(void)
+{
+ cout << "a"
+ << "b"
+ << ") :"
+ << "c";
+}
+
diff --git a/src/version.c b/src/version.c
index f69bf4e..2713ffc 100644
--- a/src/version.c
+++ b/src/version.c
@@ -715,6 +715,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 179,
+/**/
178,
/**/
177,