1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-24 07:20:37 +00:00

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).
This commit is contained in:
Dmitry Gutov 2023-09-15 16:30:58 +03:00
parent 6fe11b88ed
commit 65f4810003

View File

@ -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)