patch 9.0.1529: code style test doesn't check for space after "if"
Problem: Code style test doesn't check for space after "if".
Solution: Add a test for space.
diff --git a/src/cindent.c b/src/cindent.c
index 176bc05..9b2b644 100644
--- a/src/cindent.c
+++ b/src/cindent.c
@@ -1854,8 +1854,8 @@
// Handle C++ namespace.
buf->b_ind_cpp_namespace = 0;
- // Handle continuation lines containing conditions of if(), for() and
- // while().
+ // Handle continuation lines containing conditions of if (), for () and
+ // while ().
buf->b_ind_if_for_while = 0;
// indentation for # comments
@@ -3317,7 +3317,7 @@
}
// Special trick: when expecting the while () after a
- // do, line up with the while()
+ // do, line up with the while ()
// do
// x = 1;
// -> here