diff options
Diffstat (limited to 'src/nvim/indent_c.c')
-rw-r--r-- | src/nvim/indent_c.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/indent_c.c b/src/nvim/indent_c.c index 377bd3bfec..36223f0899 100644 --- a/src/nvim/indent_c.c +++ b/src/nvim/indent_c.c @@ -3105,8 +3105,8 @@ int get_c_indent(void) } else { // Found first unterminated line on a row, may // line up with this line, remember its indent - // 100 + // NOLINT(whitespace/tab) - // -> here; // NOLINT(whitespace/tab) + // 100 + + // -> here; l = get_cursor_line_ptr(); amount = cur_amount; @@ -3655,7 +3655,7 @@ static int find_match(int lookfor, linenr_T ourscope) if (cin_iselse(look)) { mightbeif = cin_skipcomment(look + 4); if (!cin_isif(mightbeif)) { - elselevel++; // NOLINT(readability/braces) + elselevel++; } continue; } @@ -3670,7 +3670,7 @@ static int find_match(int lookfor, linenr_T ourscope) // If it's an "if" decrement elselevel look = cin_skipcomment(get_cursor_line_ptr()); if (cin_isif(look)) { - elselevel--; // NOLINT(readability/braces) + elselevel--; // When looking for an "if" ignore "while"s that // get in the way. if (elselevel == 0 && lookfor == LOOKFOR_IF) { |