updated for version 7.3.180
Problem: When both a middle part of 'comments' matches and an end part, the
middle part was used errornously.
Solution: After finding the middle part match continue looking for a better
end part match. (partly by Lech Lorens)
diff --git a/src/testdir/test3.in b/src/testdir/test3.in
index e4c6993..56a1dc8 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 39b4859..656b16e 100644
--- a/src/testdir/test3.ok
+++ b/src/testdir/test3.ok
@@ -1225,3 +1225,12 @@
<< "c";
}
+
+void func(void)
+{
+ /*
+ * This is a comment.
+ */
+ foo();
+}
+