aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTheodor Thornhill2023-07-24 20:18:09 +0200
committerTheodor Thornhill2023-07-24 20:18:09 +0200
commitc2d95dd00e6cb0abaf4e7550f38c8c2c9ca22f2d (patch)
tree16f304a95e8dfa41ebb2c36ad12def2573b357c9
parent4e977136d3148c3baa0e03568c7a2c7dc28eea65 (diff)
downloademacs-c2d95dd00e6cb0abaf4e7550f38c8c2c9ca22f2d.tar.gz
emacs-c2d95dd00e6cb0abaf4e7550f38c8c2c9ca22f2d.zip
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'."
574 :feature 'constant 574 :feature 'constant
575 `((true) @font-lock-constant-face 575 `((true) @font-lock-constant-face
576 (false) @font-lock-constant-face 576 (false) @font-lock-constant-face
577 (null) @font-lock-constant-face 577 (null) @font-lock-constant-face)
578 ,@(when (eq mode 'cpp)
579 '((nullptr) @font-lock-constant-face)))
580 578
581 :language mode 579 :language mode
582 :feature 'keyword 580 :feature 'keyword