We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
int main() { #if DEBUG hoge; #endif }
*syntax-option-c-preprocessor*
via http://twitter.com/nayuri_aohime/status/186394016986841088
c-preprocessor-offset
nil
cpp-macro
cpp-macro-cont
c-continued-statement-offset
The text was updated successfully, but these errors were encountered:
マクロのインデントを制御できるようにした. #194
f0046e6
* 0.2.2.235 ではマクロは常にインデントなしになる * マクロのインデントを制御する変数を追加 * c-preprocessor-offset * c++-preprocessor-offset * csharp-preprocessor-offset * nil ならインデントなし、数値なら通常のインデント位置からのオフセット Note: * Java にプリプロセッサはないので java-preprocessor-offset は 追加していない * しかし、実装上の都合でシンボルは定義してある
ちょっと自身がないので develop ブランチにはまだマージしていない。 少し寝かしてからマージする。
Sorry, something went wrong.
#endregin がある場合に C# のインデントが壊れていたのを修正. #206, #192, #194
#endregin
700dc0e
以下のようなソースで `#endif` のあとでタブを押すと「'else'が妙な場所にあります」 というエラーになっていた。0.2.2.235 でも発生する。 #if FOO #region hoge #endregion #else #endif `#endif` を見つけた場合に対応する `#if` まで戻るような処理があるが、 この `#endif` を探す処理が最初の `#end` までしか見ていない。 そのため、`#endregion` を `#endif` と勘違いして処理してしまい、 `#if` - `#endif` のバランスが取れていないと判断していた。 `#end` の検索は行頭しか見ていなかったので、#192 の `#endregin` を インデントするようになったことで一時的に問題はなくなっていた。 しかし、#194 で `#if` などもインデントできるようにしたことで問題が再発。
indent-cpp-directive でマクロがインデントしていた場合に対応. #194
59432c4
csharp-region-indent-test => c-indent-test. #194
d90262e
c-preprocessor-offset のテストを追加. #194
2a7b2eb
Merge branch 'feature/c-preprocessor-offset' into develop. #194
6a198fc
x022235
No branches or pull requests
背景
*syntax-option-c-preprocessor*
を外すと正しくインデントされないvia http://twitter.com/nayuri_aohime/status/186394016986841088
仕様
c-preprocessor-offset
を追加するnil
の場合はインデントなし (従来通りの動作)(0 だと同じ位置)
nil
cpp-macro
相当の設定cpp-macro-cont
相当の設定は、従来のc-continued-statement-offset
を利用参考
The text was updated successfully, but these errors were encountered: