emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 cec9333dc52: Fix c-ts-mode--top-level-declarator


From: Yuan Fu
Subject: emacs-29 cec9333dc52: Fix c-ts-mode--top-level-declarator
Date: Sat, 20 May 2023 04:17:09 -0400 (EDT)

branch: emacs-29
commit cec9333dc5292f9aca2642209617310a64570763
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    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.
---
 lisp/progmodes/c-ts-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/progmodes/c-ts-mode.el b/lisp/progmodes/c-ts-mode.el
index 7a57d5adeb1..c6cb9520e58 100644
--- a/lisp/progmodes/c-ts-mode.el
+++ b/lisp/progmodes/c-ts-mode.el
@@ -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 _)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]