mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 15:56:35 -04: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
|
|
@ -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 _)
|
||||
|
|
|
|||
Loading…
Reference in a new issue