[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/tree-sitter 951dd2a4d9: ; * lisp/treesit.el (treesit-inspect-nod
From: |
Yuan Fu |
Subject: |
feature/tree-sitter 951dd2a4d9: ; * lisp/treesit.el (treesit-inspect-node-at-point): Minor fix. |
Date: |
Fri, 4 Nov 2022 13:52:51 -0400 (EDT) |
branch: feature/tree-sitter
commit 951dd2a4d98aafe88bf2c6c2f86901230e3f0cd2
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
; * lisp/treesit.el (treesit-inspect-node-at-point): Minor fix.
---
lisp/treesit.el | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/lisp/treesit.el b/lisp/treesit.el
index 3a1e010166..64a93aa670 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -1552,11 +1552,10 @@ in `treesit-parser-list'."
(format " %s: " (treesit-node-field-name node))
" ")
(if (treesit-node-check node 'named) "(" "\"")
- (or (propertize (treesit-node-type node)
- 'face
- (if (treesit-node-eq node largest-node)
- 'bold nil))
- "N/A")
+ (propertize (or (treesit-node-type node) "N/A")
+ 'face
+ (if (treesit-node-eq node largest-node)
+ 'bold nil))
name
(if (treesit-node-check node 'named) ")" "\""))))
(setq treesit--inspect-name name)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- feature/tree-sitter 951dd2a4d9: ; * lisp/treesit.el (treesit-inspect-node-at-point): Minor fix.,
Yuan Fu <=