projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
80ba6b7
)
Fontify namespace in c++-ts-mode
author
Yuan Fu
<casouri@gmail.com>
Thu, 9 May 2024 04:25:40 +0000
(21:25 -0700)
committer
Yuan 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
patch
|
blob
|
history
diff --git
a/lisp/progmodes/c-ts-mode.el
b/lisp/progmodes/c-ts-mode.el
index 730671da78175727ba1127b4fedf38731d43d5c7..b703999d78871baffae82fdc35cdf4caedb53cb8 100644
(file)
--- 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