Fontify "this" as a keyword in c++-ts-mode (bug#59924)
* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Following c++-mode, fontify as a keyword instead of a constant.
This commit is contained in:
parent
8de8f1dc05
commit
8f53fa10d9
1 changed files with 3 additions and 3 deletions
|
@ -234,14 +234,14 @@ MODE is either `c' or `cpp'."
|
||||||
(false) @font-lock-constant-face
|
(false) @font-lock-constant-face
|
||||||
(null) @font-lock-constant-face
|
(null) @font-lock-constant-face
|
||||||
,@(when (eq mode 'cpp)
|
,@(when (eq mode 'cpp)
|
||||||
'((this) @font-lock-constant-face
|
'((nullptr) @font-lock-constant-face)))
|
||||||
(nullptr) @font-lock-constant-face)))
|
|
||||||
|
|
||||||
:language mode
|
:language mode
|
||||||
:feature 'keyword
|
:feature 'keyword
|
||||||
`([,@(c-ts-mode--keywords mode)] @font-lock-keyword-face
|
`([,@(c-ts-mode--keywords mode)] @font-lock-keyword-face
|
||||||
,@(when (eq mode 'cpp)
|
,@(when (eq mode 'cpp)
|
||||||
'((auto) @font-lock-keyword-face)))
|
'((auto) @font-lock-keyword-face
|
||||||
|
(this) @font-lock-keyword-face)))
|
||||||
|
|
||||||
:language mode
|
:language mode
|
||||||
:feature 'operator
|
:feature 'operator
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue