[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 65f4810003b: tsx-ts-mode--font-lock-compatibility-bb1f97b: Impr
From: |
Dmitry Gutov |
Subject: |
emacs-29 65f4810003b: tsx-ts-mode--font-lock-compatibility-bb1f97b: Improve |
Date: |
Fri, 15 Sep 2023 09:31:07 -0400 (EDT) |
branch: emacs-29
commit 65f4810003b617ea2e5a1149ad66521640bd7fec
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>
tsx-ts-mode--font-lock-compatibility-bb1f97b: Improve
* lisp/progmodes/typescript-ts-mode.el
(tsx-ts-mode--font-lock-compatibility-bb1f97b):
Test the more complex query, because the current one leads to
false positives (mentioned in bug#65470).
---
lisp/progmodes/typescript-ts-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/progmodes/typescript-ts-mode.el
b/lisp/progmodes/typescript-ts-mode.el
index 57382c9cb31..7108ff49b28 100644
--- a/lisp/progmodes/typescript-ts-mode.el
+++ b/lisp/progmodes/typescript-ts-mode.el
@@ -163,7 +163,7 @@ Argument LANGUAGE is either `typescript' or `tsx'."
;; but then raises an error if the wrong node type is used. So it is
;; important to check with the new node type (member_expression)
(condition-case nil
- (progn (treesit-query-capture language '((member_expression) @capture))
+ (progn (treesit-query-capture language '(jsx_opening_element
(member_expression) @capture))
'((jsx_opening_element
[(member_expression (identifier)) (identifier)]
@typescript-ts-jsx-tag-face)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 65f4810003b: tsx-ts-mode--font-lock-compatibility-bb1f97b: Improve,
Dmitry Gutov <=