[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/tree-sitter 1f74e9112e 01/10: Don't disable parse cache in tree-
From: |
Yuan Fu |
Subject: |
feature/tree-sitter 1f74e9112e 01/10: Don't disable parse cache in tree-sitter activated js-mode |
Date: |
Wed, 26 Oct 2022 21:41:59 -0400 (EDT) |
branch: feature/tree-sitter
commit 1f74e9112e28faa57a7bf56547a9ebf8f6618273
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
Don't disable parse cache in tree-sitter activated js-mode
* lisp/progmodes/js.el (js-mode): Move parse cache setup back.
---
lisp/progmodes/js.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el
index 4ccdab0d92..1d53a624a7 100644
--- a/lisp/progmodes/js.el
+++ b/lisp/progmodes/js.el
@@ -3622,6 +3622,9 @@ This function can be used as a value in
`which-func-functions'"
(setq-local fill-paragraph-function #'js-fill-paragraph)
(setq-local normal-auto-fill-function #'js-do-auto-fill)
+ ;; Parse cache
+ (add-hook 'before-change-functions #'js--flush-caches t t)
+
;; Frameworks
(js--update-quick-match-re)
@@ -3704,9 +3707,7 @@ This function can be used as a value in
`which-func-functions'"
#'syntax-propertize-multiline 'append 'local)
(add-hook 'syntax-propertize-extend-region-functions
#'js--syntax-propertize-extend-region 'append 'local)
-
- ;; Parse cache
- (add-hook 'before-change-functions #'js--flush-caches t t))))
+ )))
(defvar js-json--treesit-font-lock-settings
(treesit-font-lock-rules
- feature/tree-sitter updated (5070278539 -> 62c8c8e51a), Yuan Fu, 2022/10/26
- feature/tree-sitter c9df4cace0 02/10: * src/treesit.c (treesit_search_forward): Fix traverses algorithm., Yuan Fu, 2022/10/26
- feature/tree-sitter 5c1b9e65b9 03/10: ; * src/treesit.c (treesit_search_forward): Fix comment., Yuan Fu, 2022/10/26
- feature/tree-sitter 734df28368 05/10: Fix tree-sitter navigation, Yuan Fu, 2022/10/26
- feature/tree-sitter 62c8c8e51a 10/10: Plug tree-sitter-simple-indent into c-offset-alist, Yuan Fu, 2022/10/26
- feature/tree-sitter e868955bff 04/10: * src/treesit.c (treesit_search_dfs): Fix traverse algorithm., Yuan Fu, 2022/10/26
- feature/tree-sitter 6fb6cb075f 06/10: Add tree-sitter imenu support for js-mode and ts-mode, Yuan Fu, 2022/10/26
- feature/tree-sitter 76b86d9853 08/10: Generalize js--treesit-imenu-top-level-p, Yuan Fu, 2022/10/26
- feature/tree-sitter c352392420 07/10: Add tree-sitter navigation support to python-mode, Yuan Fu, 2022/10/26
- feature/tree-sitter 5532ae81cf 09/10: * lisp/treesit.el (treesit-node-top-level-p): New argument TYPE., Yuan Fu, 2022/10/26
- feature/tree-sitter 1f74e9112e 01/10: Don't disable parse cache in tree-sitter activated js-mode,
Yuan Fu <=