]> git.eshelyaron.com Git - emacs.git/commit
Update TSX support due to upstream changes (bug#64647)
authorVincenzo Pupillo <v.pupillo@gmail.com>
Sat, 22 Jul 2023 11:37:54 +0000 (13:37 +0200)
committerTheodor Thornhill <theo@thornhill.no>
Sat, 22 Jul 2023 21:18:23 +0000 (23:18 +0200)
commit235561a2ccc03f50652cd942ab7906fe6178ef83
tree08a66dc82ae27ee8792835415de5296620c3c105
parent12ab82d3b358fa72dc4705cb6ff7ce0523968200
Update TSX support due to upstream changes (bug#64647)

A recent change in tree-sitter-typescript grammar support for
TSX (commit b893426), changed two things:
1. renamed nested_identifier to member_expression
2. removed jsx_fragment, jsx_text is used instead

* lisp/progmodes/typescript-ts-mode.el
(tsx-ts-mode--indent-compatibility-b893426): Indent helper function
to handle different tree-sitter-typescript version.
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--indent-rules): use the new function to handle
both jsx_fragment and jsx_text.
* lisp/progmodes/typescript-ts-mode.el
(tsx-ts-mode--font-lock-compatibility-bb1f97b): Font lock helper
function for handle different tree-sitter-typescript version.
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings): Use the new function to
handle both nested_identifier and member_expression.
lisp/progmodes/typescript-ts-mode.el