Mercurial > vim
diff src/cindent.c @ 32395:2ed95122d59c v9.0.1529
patch 9.0.1529: code style test doesn't check for space after "if"
Commit: https://github.com/vim/vim/commit/c9471b18728b1b37c04845ca2bc59fc981308b2d
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue May 9 15:00:00 2023 +0100
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.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 09 May 2023 16:15:05 +0200 |
parents | 73489b6c4a02 |
children | 448aef880252 |
line wrap: on
line diff
--- 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