Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Emacs の C++ モードの構文強調表示を改善しようとしていますが、コード内のメンバー変数に一致する正規表現を見つける必要があります。
正規表現で一致させたいのは、スクリーンショットの赤いキーワードであり、青いキーワードではありません。
関数呼び出し(青いもの)を見つけるために、式を使用しています([a-zA-Z_]+[a-zA-Z0-9_]*)+[(]
([a-zA-Z_]+[a-zA-Z0-9_]*)+[(]
これを変更して、キーワードの後に括弧がある場合は一致しないようにします。