0

_stサフィックスを持つすべてのキーワードを異なる色で強調表示したい。

(font-lock-add-keywords
 nil
 '(("\\<\\([a-z0-9_]+_st\\)\\>" 1 font-lock-warning-face)))

で試してみましたがprepend、同じ結果です。

namespace base {
class some_container_st {     /* ✘ (default face) */
    some_container_st() {  }  /* ✔ */
};
}

typedef base::some_container_st some_container_st; /* ✘ */

int main()
{
    struct stat var_st;   /* ✔ */
    TStat abc_st();       /* ✔ */
    some_container_st a;  /* ✔ */
    base::some_container_st b;  /* ✘ */
    ...
}
4

0 に答える 0