]> git.eshelyaron.com Git - emacs.git/commitdiff
Fontify namespace in c++-ts-mode
authorYuan Fu <casouri@gmail.com>
Thu, 9 May 2024 04:25:40 +0000 (21:25 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 10 May 2024 13:33:35 +0000 (15:33 +0200)
* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Add a
rule for namespace.

(cherry picked from commit c6a5aae3da17459be7550c8f183c0c350ba8ccb0)

lisp/progmodes/c-ts-mode.el

index 09b2963abd135da8e76c0c0266badd2c5315738e..605c747a89c45644eb98f5c305e748a84f97c04b 100644 (file)
@@ -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