[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
feature/tree-sitter b028d4f7df 04/14: ; Tree-sitter: Don't refontify if
From: |
Yuan Fu |
Subject: |
feature/tree-sitter b028d4f7df 04/14: ; Tree-sitter: Don't refontify if entity contained in the region |
Date: |
Fri, 4 Nov 2022 13:19:09 -0400 (EDT) |
branch: feature/tree-sitter
commit b028d4f7dfbd72790679423a8dcce9994b07834d
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
; Tree-sitter: Don't refontify if entity contained in the region
* lisp/treesit.el (treesit-font-lock-contextual-post-process): Only
refontify when NODE-START < region START.
---
lisp/treesit.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/treesit.el b/lisp/treesit.el
index d6058cdc43..7d961476cd 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -696,7 +696,7 @@ If VERBOSE is non-nil, print debugging information."
(when verbose
(message "Contextual: region: %s-%s, node: %s-%s"
start end node-start node-end))
- (when (<= node-end end)
+ (when (and (< node-start start) (<= node-end end))
(if (get-text-property node-end-1 prop-sym)
;; We are called from a refontification by jit-lock-context,
;; caused by a previous call to this function.
- feature/tree-sitter 673a55780d 10/14: ; Remove unused tree-sitter functions, (continued)
- feature/tree-sitter 673a55780d 10/14: ; Remove unused tree-sitter functions, Yuan Fu, 2022/11/04
- feature/tree-sitter e0e3299c01 12/14: ; * lisp/treesit.el (treesit-update-ranges): Update all parsers., Yuan Fu, 2022/11/04
- feature/tree-sitter 784f53a215 11/14: ; Replace error with signal in treesit.el, Yuan Fu, 2022/11/04
- feature/tree-sitter c924b6afb6 14/14: ; * lisp/treesit.el (treesit-ready-p): Fix typo., Yuan Fu, 2022/11/04
- feature/tree-sitter e3663d0e9c 03/14: Add contextual tree-sitter font-lock to ts-mode and js-mode, Yuan Fu, 2022/11/04
- feature/tree-sitter f6dc55f516 07/14: ; * lisp/progmodes/js.el (js--fontify-template-string): Fix typo., Yuan Fu, 2022/11/04
- feature/tree-sitter f9f9b43df5 02/14: Minor change to tree-sitter imenu function of js-mode, Yuan Fu, 2022/11/04
- feature/tree-sitter 8ad4c4009e 09/14: Add treesit-indent-error, Yuan Fu, 2022/11/04
- feature/tree-sitter b86deb617b 06/14: Fix treesit-parser-set-included-ranges, Yuan Fu, 2022/11/04
- feature/tree-sitter d9d66764e2 08/14: Revise tree-sitter facility for multi-language buffers, Yuan Fu, 2022/11/04
- feature/tree-sitter b028d4f7df 04/14: ; Tree-sitter: Don't refontify if entity contained in the region,
Yuan Fu <=