patch 7.4.803
Problem: C indent does not support C11 raw strings. (Mark Lodato)
Solution: Do not change indent inside the raw string.
diff --git a/src/testdir/test3.in b/src/testdir/test3.in
index a321bb8..4f5331e 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 b1c8b70..e87e7fd 100644
--- a/src/testdir/test3.ok
+++ b/src/testdir/test3.ok
@@ -879,6 +879,25 @@
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 */