projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f571e8f
)
Fix c-ts-mode--top-level-declarator
author
Yuan Fu
<casouri@gmail.com>
Sat, 20 May 2023 07:45:39 +0000
(
00:45
-0700)
committer
Yuan Fu
<casouri@gmail.com>
Sat, 20 May 2023 07:45:39 +0000
(
00:45
-0700)
* 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
patch
|
blob
|
history
diff --git
a/lisp/progmodes/c-ts-mode.el
b/lisp/progmodes/c-ts-mode.el
index 7a57d5adeb1a6f6d2c3917fcc4fe4b0a75bf5c16..c6cb9520e58bf24eeef35b1b130fe2a1e687e503 100644
(file)
--- 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 _)