mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-04 19:29:37 +00:00
tsx-ts-mode--font-lock-compatibility-bb1f97b: Re-fix the previous fix
* lisp/progmodes/typescript-ts-mode.el (tsx-ts-mode--font-lock-compatibility-bb1f97b): Make sure the tested query is actually valid in the new grammar (bug#66646).
This commit is contained in:
parent
b99d12c30c
commit
ee043a2703
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,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 '(jsx_opening_element (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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue