summaryrefslogtreecommitdiff
path: root/src/testdir
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-05-10 11:56:30 +0200
committerBram Moolenaar <Bram@vim.org>2011-05-10 11:56:30 +0200
commitaede6ceba3030db559f503268be9cad75a08ca39 (patch)
tree766abe7cd9b694aae5d17005e03f421c23c81360 /src/testdir
parent4ae06c1fa5973496deb74ef06dd116843bf0b647 (diff)
downloadvim-aede6ceba3030db559f503268be9cad75a08ca39.zip
updated for version 7.3.179
Problem: C-indent doesn't handle colon in string correctly. Solution: Skip the string. (Lech Lorens)
Diffstat (limited to 'src/testdir')
-rw-r--r--src/testdir/test3.in13
-rw-r--r--src/testdir/test3.ok9
2 files changed, 22 insertions, 0 deletions
diff --git a/src/testdir/test3.in b/src/testdir/test3.in
index 8576e275a..e4c699394 100644
--- a/src/testdir/test3.in
+++ b/src/testdir/test3.in
@@ -1360,6 +1360,19 @@ void func(void)
}
STARTTEST
+:set cino&
+2kdd=][
+ENDTEST
+
+void func(void)
+{
+ cout << "a"
+ << "b"
+ << ") :"
+ << "c";
+}
+
+STARTTEST
:g/^STARTTEST/.,/^ENDTEST/d
:1;/start of AUTO/,$wq! test.out
ENDTEST
diff --git a/src/testdir/test3.ok b/src/testdir/test3.ok
index 3764453a7..39b485950 100644
--- a/src/testdir/test3.ok
+++ b/src/testdir/test3.ok
@@ -1216,3 +1216,12 @@ void func(void)
printf("Foo!\n");
}
+
+void func(void)
+{
+ cout << "a"
+ << "b"
+ << ") :"
+ << "c";
+}
+