Mercurial > vim
comparison src/cindent.c @ 26694:1095fd0dc362 v8.2.3876
patch 8.2.3876: 'cindent' does not recognize inline namespace
Commit: https://github.com/vim/vim/commit/f2f0bddf303e37d4d532ca22e2d53179c20b1d19
Author: zeertzjq <zeertzjq@outlook.com>
Date: Wed Dec 22 20:55:30 2021 +0000
patch 8.2.3876: 'cindent' does not recognize inline namespace
Problem: 'cindent' does not recognize inline namespace.
Solution: Skip over "inline" to find "namespace". (closes https://github.com/vim/vim/issues/9383)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 22 Dec 2021 22:00:05 +0100 |
parents | 9596c652420b |
children | fc859aea8cec |
comparison
equal
deleted
inserted
replaced
26693:312866076d85 | 26694:1095fd0dc362 |
---|---|
753 char_u *p; | 753 char_u *p; |
754 int has_name = FALSE; | 754 int has_name = FALSE; |
755 int has_name_start = FALSE; | 755 int has_name_start = FALSE; |
756 | 756 |
757 s = cin_skipcomment(s); | 757 s = cin_skipcomment(s); |
758 | |
759 if (STRNCMP(s, "inline", 6) == 0 && (s[6] == NUL || !vim_iswordc(s[6]))) | |
760 s = cin_skipcomment(skipwhite(s + 6)); | |
761 | |
758 if (STRNCMP(s, "namespace", 9) == 0 && (s[9] == NUL || !vim_iswordc(s[9]))) | 762 if (STRNCMP(s, "namespace", 9) == 0 && (s[9] == NUL || !vim_iswordc(s[9]))) |
759 { | 763 { |
760 p = cin_skipcomment(skipwhite(s + 9)); | 764 p = cin_skipcomment(skipwhite(s + 9)); |
761 while (*p != NUL) | 765 while (*p != NUL) |
762 { | 766 { |