Bug#707834: vim: A derived C++ inner-class indent incorrectly the class's opening and closing curly braces.
Plug Gulp
plug.gulp at gmail.com
Sat May 11 17:24:56 UTC 2013
Package: vim
Version: 2:7.3.547-7
Severity: normal
Dear Vim Maintainer(s),
A C++ inner-class that is derived from another class does not correctly indent it's opening and closing curly braces.
The indentation works correctly if the inner-class is not derived from any other class.
Following is an example demonstrating the issue:
class Test
{
protected:
class Inner0 : InnerBase
{
};
class Inner1
{
};
};
The expected result should be:
class Test
{
protected:
class Inner0 : InnerBase
{
};
class Inner1
{
};
};
There was no change in the default configuration of vim except for the following:
set shiftwidth=4
set tabstop=4
Thanks and regards,
~Plug
-- Package-specific info:
--- real paths of main Vim binaries ---
/usr/bin/vi is /usr/bin/vim.basic
/usr/bin/vim is /usr/bin/vim.basic
-- System Information:
Debian Release: 7.0
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages vim depends on:
ii libacl1 2.2.51-8
ii libc6 2.13-38
ii libgpm2 1.20.4-6
ii libselinux1 2.1.9-5
ii libtinfo5 5.9-10
ii vim-common 2:7.3.547-7
ii vim-runtime 2:7.3.547-7
vim recommends no packages.
Versions of packages vim suggests:
pn ctags <none>
pn vim-doc <none>
pn vim-scripts <none>
-- no debconf information
More information about the pkg-vim-maintainers
mailing list