You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e0d2e4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nullptr_t
は言語レベルのキーワードではなくて標準ライブラリで定義されている『ただの型』でしかないので、ここで (C++ のシンタックスとして)設定するのはちょっと違和感があります。個人的には『言語レベルのキーワード』か『そうでないもの』に分けて設定(できるように)したほうがいいと思うのですがどうでしょうか。
e0d2e4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
なるほど。override や final が Type って名付けられてるのもちょっとモニョるので、本来であれば override と final が modifier かなんかになってるといいのですけどね。
e0d2e4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あー、これ言い出すと
inline virtual explicit export bool wchar_t
もモニョる。e0d2e4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
今回の件とは関係ないんですが、ちょっとコードみててわたしも思いました。
こっちもそうですね。
bool wchar_t
はいいんですけど、それ以外がちょっと違う感じがしますね。e0d2e4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
個人的には『言語レベルのキーワードでないもの(標準ライブラリで定義されている型とかマクロとか)』はシンタックスハイライトしてほしくないので、そういうのは組み込まないようにするか、設定で有効(無効)できるようにした方がよいと思っています。
あと言語に慣れてない人が『ハイライトされているからこれは言語のキーワードなのか』と勘違いすることもあると思います。
実際わたしも Vim で Ruby を書いているときにそういうような勘違いをしていました。
e0d2e4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
事後になって申し訳ないのですが、vim-dev に型 cppType と別に cppModifier というのを追加して、final とか override をそっちにもっていくパッチを投げています。
https://groups.google.com/forum/#!topic/vim_dev/bT2u0V88_9A
おしょうさんの言っている部分が cppType になると思うので、そちらのハイライトを消すか別の物に設定する事で解決するかと思いましたが、どうでしょうか。
デフォルトでハイライトされるのが良くないという事であれば、いったんこのパッチのマージをまってその上でフラグを見ながらハイライトしない設定を追加しましょうか。
e0d2e4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
いえ、こちらも後出しなのであまり気にしないでください。
いや、
cppType
を消してしまうとwchar_t
やbool
などと言った他の組み込み型も消えてしまうので困るかと。わたしのイメージだと全く別の
CppTypeEx
(名前は適当) みたいなやつを用意してやるか!exists("cpp_no_std_hl")
みたいな感じで区分けするのがいいのではないかと思ってました(個人的には後者の方が実装や設定がスッキリしてていいかな?なので方向性としては
こんな感じでよいかと思います。
e0d2e4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
了解です。 #35 todo という事で。
e0d2e4e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ありがとうございます。