summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuan Fu <casouri@gmail.com>2024-05-08 21:25:40 -0700
committerYuan Fu <casouri@gmail.com>2024-05-08 21:25:40 -0700
commitc6a5aae3da17459be7550c8f183c0c350ba8ccb0 (patch)
treee62426bf569b2af53cc712a3931d15d050211dde
parent80ba6b7b96aad3659675b76a8965788fd0d73476 (diff)
downloademacs-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.el4
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