diff options
author | Yuan Fu <casouri@gmail.com> | 2024-05-08 21:25:40 -0700 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2024-05-08 21:25:40 -0700 |
commit | c6a5aae3da17459be7550c8f183c0c350ba8ccb0 (patch) | |
tree | e62426bf569b2af53cc712a3931d15d050211dde | |
parent | 80ba6b7b96aad3659675b76a8965788fd0d73476 (diff) | |
download | emacs-c6a5aae3da17459be7550c8f183c0c350ba8ccb0.tar.gz |
Fontify namespace in c++-ts-mode
* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Add a
rule for namespace.
-rw-r--r-- | lisp/progmodes/c-ts-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 730671da781..b703999d788 100644 --- a/lisp/progmodes/c-ts-mode.el +++ b/lisp/progmodes/c-ts-mode.el @@ -665,7 +665,9 @@ MODE is either `c' or `cpp'." (qualified_identifier scope: (namespace_identifier) @font-lock-type-face) - (operator_cast) type: (type_identifier) @font-lock-type-face)) + (operator_cast) type: (type_identifier) @font-lock-type-face + + (namespace_identifier) @font-lock-constant-face)) [,@c-ts-mode--type-keywords] @font-lock-type-face) :language mode |