mirror of
https://github.com/vim/vim.git
synced 2025-10-27 09:24:23 -04:00
updated for version 7.3.332
Problem: Indent after "public:" is not increased in C++ code. (Lech Lorens)
Solution: Check for namespace after the regular checks. (partly by Martin
Gieseking)
This commit is contained in:
@@ -1308,6 +1308,20 @@ protected:
|
||||
int Test() { return FALSE; }
|
||||
|
||||
public: // comment
|
||||
void testfall();
|
||||
protected:
|
||||
void testfall();
|
||||
};
|
||||
|
||||
STARTTEST
|
||||
:set cino=(0,gs,hs
|
||||
2kdd]]=][
|
||||
ENDTEST
|
||||
|
||||
class Foo : public Bar
|
||||
{
|
||||
public:
|
||||
virtual void method1(void) = 0;
|
||||
virtual void method2(int arg1,
|
||||
int arg2,
|
||||
int arg3) = 0;
|
||||
|
||||
@@ -1190,6 +1190,16 @@ protected:
|
||||
};
|
||||
|
||||
|
||||
class Foo : public Bar
|
||||
{
|
||||
public:
|
||||
virtual void method1(void) = 0;
|
||||
virtual void method2(int arg1,
|
||||
int arg2,
|
||||
int arg3) = 0;
|
||||
};
|
||||
|
||||
|
||||
void
|
||||
foo()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user