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)
diff --git a/src/cindent.c b/src/cindent.c
index 4fa165e..42b46e4 100644
--- a/src/cindent.c
+++ b/src/cindent.c
@@ -755,6 +755,10 @@
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));