[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/tree-sitter f1e058d46b 8/8: Update ts-mode font-lock to work wit
From: |
Yuan Fu |
Subject: |
feature/tree-sitter f1e058d46b 8/8: Update ts-mode font-lock to work with tree-sitter's :feature |
Date: |
Sat, 15 Oct 2022 19:10:38 -0400 (EDT) |
branch: feature/tree-sitter
commit f1e058d46b5a83ddd0423a3616aa50ac3ec7f551
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
Update ts-mode font-lock to work with tree-sitter's :feature
* lisp/progmodes/ts-mode.el (ts-mode--settings): Add :feature flag.
(ts-mode): Set treesit-font-lock-feature-list.
---
lisp/progmodes/ts-mode.el | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lisp/progmodes/ts-mode.el b/lisp/progmodes/ts-mode.el
index 638dfa5013..10d4b7bd18 100644
--- a/lisp/progmodes/ts-mode.el
+++ b/lisp/progmodes/ts-mode.el
@@ -108,6 +108,7 @@
(treesit-font-lock-rules
:language 'tsx
:override t
+ :feature 'basic
'(
(template_string) @font-lock-string-face
@@ -358,6 +359,7 @@ ARG is the same as in `end-of-defun."
(setq-local treesit-font-lock-settings ts-mode--settings)
+ (setq treesit-font-lock-feature-list '((basic)))
(treesit-font-lock-enable))
(t
(message "Tree sitter for TypeScript isn't available, defaulting to
js-mode")
- feature/tree-sitter updated (c4179117af -> f1e058d46b), Yuan Fu, 2022/10/15
- feature/tree-sitter 77f1533ccb 2/8: ; Comment and docstring fixup in ts-mode.el, Yuan Fu, 2022/10/15
- feature/tree-sitter bc66ff9875 4/8: * src/treesit.c (Ftreesit_query_language): New function., Yuan Fu, 2022/10/15
- feature/tree-sitter f0e9085a17 5/8: * doc/lispref/parsing.texi: Add manual for treesit-query-language., Yuan Fu, 2022/10/15
- feature/tree-sitter 0b3f785c4a 3/8: Better signal data for treesit-load-language-error, Yuan Fu, 2022/10/15
- feature/tree-sitter 45b8204e09 1/8: Add TypeScript support with tree-sitter, Yuan Fu, 2022/10/15
- feature/tree-sitter af288d813b 6/8: Rework tree-sitter font-lock, Yuan Fu, 2022/10/15
- feature/tree-sitter bb8a46e559 7/8: Update tree-sitter manual to reflect the previous commit, Yuan Fu, 2022/10/15
- feature/tree-sitter f1e058d46b 8/8: Update ts-mode font-lock to work with tree-sitter's :feature,
Yuan Fu <=