mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 11:49:37 +00:00
Fix c-ts-mode--top-level-declarator
* lisp/progmodes/c-ts-mode.el: (c-ts-mode--top-level-declarator): Don't use treesit-node-match-p.
This commit is contained in:
parent
f571e8f1bb
commit
cec9333dc5
1 changed files with 1 additions and 1 deletions
|
@ -767,7 +767,7 @@ For NODE, OVERRIDE, START, END, and ARGS, see
|
||||||
;; more cases.
|
;; more cases.
|
||||||
(let* ((parent (treesit-node-parent node))
|
(let* ((parent (treesit-node-parent node))
|
||||||
(grandparent (treesit-node-parent parent)))
|
(grandparent (treesit-node-parent parent)))
|
||||||
(and (treesit-node-match-p parent "ERROR")
|
(and (equal (treesit-node-type parent) "ERROR")
|
||||||
(null grandparent))))
|
(null grandparent))))
|
||||||
|
|
||||||
(defun c-ts-mode--fontify-variable (node override start end &rest _)
|
(defun c-ts-mode--fontify-variable (node override start end &rest _)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue