summaryrefslogtreecommitdiff
path: root/src/testdir/test3.in
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2015-07-28 21:17:36 +0200
committerBram Moolenaar <Bram@vim.org>2015-07-28 21:17:36 +0200
commitf7bb86dc593913d055e4cce16cec43f6271adda3 (patch)
treed987f51511bb7af5395ea9adcc467b0a33660dd3 /src/testdir/test3.in
parent52e21cf057e313a867b0f529c8e4d52ad5ae740d (diff)
downloadvim-git-f7bb86dc593913d055e4cce16cec43f6271adda3.tar.gz
patch 7.4.803v7.4.803
Problem: C indent does not support C11 raw strings. (Mark Lodato) Solution: Do not change indent inside the raw string.
Diffstat (limited to 'src/testdir/test3.in')
-rw-r--r--src/testdir/test3.in19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/testdir/test3.in b/src/testdir/test3.in
index a321bb885..4f5331e56 100644
--- a/src/testdir/test3.in
+++ b/src/testdir/test3.in
@@ -891,6 +891,25 @@ namespace111111111
111111111111111111;
}
+void getstring() {
+/* Raw strings */
+const char* s = R"(
+ test {
+ # comment
+ field: 123
+ }
+ )";
+ }
+
+void getstring() {
+const char* s = R"foo(
+ test {
+ # comment
+ field: 123
+ }
+ )foo";
+ }
+
/* end of AUTO */
STARTTEST