From: Yuan Fu Date: Thu, 9 May 2024 04:25:40 +0000 (-0700) Subject: Fontify namespace in c++-ts-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f7a2b7c605ea821872e659883860025e03d637cd;p=emacs.git Fontify namespace in c++-ts-mode * lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Add a rule for namespace. (cherry picked from commit c6a5aae3da17459be7550c8f183c0c350ba8ccb0) --- diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el index 09b2963abd1..605c747a89c 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