The new C2x and C++23 standards add new preprocessing conditionals, #elifdef and #elifndef
For C the proposal was:
https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2645.pdf
For C++ the proposal was:
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2021/p2334r1.pdf
They've been supported by GCC for a couple of years:
https://gcc.gnu.org/gcc-12/changes.html#c
Vim does not recognize these and so doesn't syntax highlight them.
#ifdef foo #elifdef bar #elifndef baz #endif
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
can you create a PR to runtime/syntax/c.vim ?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Done, but see my comment on #13679 about whether the PR is complete or not.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
The matchit plugin also needs to recognize #elifdef and #elifndef.
The built-in [#, ]# and % do not need any change, even though they deal with #if/#else/#endif, because they only look for el and do not care about subsequent characters.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I'll add it to #12984, thanks.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #13667 as completed via chrisbra/matchit#41.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Marvellous, thank you!
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()