summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodor Thornhill <theo@thornhill.no>2023-07-24 20:18:09 +0200
committerTheodor Thornhill <theo@thornhill.no>2023-07-24 20:18:09 +0200
commitc2d95dd00e6cb0abaf4e7550f38c8c2c9ca22f2d (patch)
tree16f304a95e8dfa41ebb2c36ad12def2573b357c9
parent4e977136d3148c3baa0e03568c7a2c7dc28eea65 (diff)
downloademacs-c2d95dd00e6cb0abaf4e7550f38c8c2c9ca22f2d.tar.gz
Remove nullptr named node from c++-ts-mode (bug#64818)
The nullptr node was changed from a named node to an unnamed node upstream[0], which caused font locking to break. As this is a small enough regression, no compat code is required. * lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings): Remove node no longer in use. [0]: https://github.com/tree-sitter/tree-sitter-c/commit/c75868f8b508ae32a0c8490da91bb31b2b96430e
-rw-r--r--lisp/progmodes/c-ts-mode.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el
index 7f4f6f11387..98797bf3ce7 100644
--- a/lisp/progmodes/c-ts-mode.el
+++ b/lisp/progmodes/c-ts-mode.el
@@ -574,9 +574,7 @@ MODE is either `c' or `cpp'."
:feature 'constant
`((true) @font-lock-constant-face
(false) @font-lock-constant-face
- (null) @font-lock-constant-face
- ,@(when (eq mode 'cpp)
- '((nullptr) @font-lock-constant-face)))
+ (null) @font-lock-constant-face)
:language mode
:feature 'keyword