forked from aniani/vim
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 #9383)
This commit is contained in:
@@ -755,6 +755,10 @@ cin_is_cpp_namespace(char_u *s)
|
||||
int has_name_start = FALSE;
|
||||
|
||||
s = cin_skipcomment(s);
|
||||
|
||||
if (STRNCMP(s, "inline", 6) == 0 && (s[6] == NUL || !vim_iswordc(s[6])))
|
||||
s = cin_skipcomment(skipwhite(s + 6));
|
||||
|
||||
if (STRNCMP(s, "namespace", 9) == 0 && (s[9] == NUL || !vim_iswordc(s[9])))
|
||||
{
|
||||
p = cin_skipcomment(skipwhite(s + 9));
|
||||
|
Reference in New Issue
Block a user