summaryrefslogtreecommitdiffstats
path: root/src/cindent.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2023-05-09 15:00:00 +0100
committerBram Moolenaar <Bram@vim.org>2023-05-09 15:00:00 +0100
commitc9471b18728b1b37c04845ca2bc59fc981308b2d (patch)
treedafcc679138813e74a19d656f7a582d36e9d3ea3 /src/cindent.c
parentdda01c05c2ded3f0d11703bd983a19b6ca7d5055 (diff)
patch 9.0.1529: code style test doesn't check for space after "if"v9.0.1529
Problem: Code style test doesn't check for space after "if". Solution: Add a test for space.
Diffstat (limited to 'src/cindent.c')
-rw-r--r--src/cindent.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cindent.c b/src/cindent.c
index 176bc05282..9b2b6442a6 100644
--- a/src/cindent.c
+++ b/src/cindent.c
@@ -1854,8 +1854,8 @@ parse_cino(buf_T *buf)
// 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 @@ get_c_indent(void)
}
// Special trick: when expecting the while () after a
- // do, line up with the while()
+ // do, line up with the while ()
// do
// x = 1;
// -> here