Fontify namespace in c++-ts-mode
authorYuan Fu <casouri@gmail.com>
Thu, 9 May 2024 04:25:40 +0000 (21:25 -0700)
committerYuan Fu <casouri@gmail.com>
Thu, 9 May 2024 04:25:40 +0000 (21:25 -0700)
* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Add a
rule for namespace.

lisp/progmodes/c-ts-mode.el

index 730671da78175727ba1127b4fedf38731d43d5c7..b703999d78871baffae82fdc35cdf4caedb53cb8 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