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:
@@ -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 _)
|
||||
|
||||
Reference in New Issue
Block a user