Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cpp] unexpected indentation after a macro followed by a block #209

Open
takamori opened this issue Sep 14, 2018 · 1 comment
Open

[cpp] unexpected indentation after a macro followed by a block #209

takamori opened this issue Sep 14, 2018 · 1 comment

Comments

@takamori
Copy link
Contributor

Repros with the following code; pressing Enter after the closing brace results in indentation:

#include <iostream>
#include "mystuff/util.h"
FOO() {
}

This doesn't occur in the base C++ mode w/ smartIndent and other settings enabled.

marijnh added a commit that referenced this issue Sep 15, 2018
@marijnh
Copy link
Member

marijnh commented Sep 15, 2018

There were two issues causing this, the first is handled in attached patch, but the second is that macro names are only recognized when they have an underscore in them, as per discussion in #94. We can change that, but it might lead to false positives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants