From c9471b18728b1b37c04845ca2bc59fc981308b2d Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 9 May 2023 15:00:00 +0100 Subject: 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. --- src/cindent.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cindent.c') 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 -- cgit v1.2.3