Problem:
cindent matches a javascript syntax for C files
causing wrong indentation in the following case
float a[5],
b; <- this is not aligned with 'a' if we are inside curly braces
Solution:
check if the filetype if javascript before matching the syntax
I am not totally sure, what is the purpose of matching that syntax,
but based on the commits that introduced it (7.4.670, 7.4.891),
I assume it is meant for javascript. At least it is not useful in C.
https://github.com/vim/vim/pull/18631
(2 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
thanks
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()