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:
Yuan Fu 2023-05-20 00:45:39 -07:00
parent f571e8f1bb
commit cec9333dc5
No known key found for this signature in database
GPG key ID: 56E19BC57664A442

View file

@ -767,7 +767,7 @@ For NODE, OVERRIDE, START, END, and ARGS, see
;; more cases.
(let* ((parent (treesit-node-parent node))
(grandparent (treesit-node-parent parent)))
(and (treesit-node-match-p parent "ERROR")
(and (equal (treesit-node-type parent) "ERROR")
(null grandparent))))
(defun c-ts-mode--fontify-variable (node override start end &rest _)