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.
|
||||
(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…
Add table
Reference in a new issue