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

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

* lisp/progmodes/js.el (js-jsx--treesit-indent-compatibility-bb1f97b):
Indent helper function to handle different tree-sitter-javascript
version.
* lisp/progmodes/js.el (js--treesit-indent-rules): Use the new
function to handle both jsx_fragment and jsx_text.
* lisp/progmodes/js.el (js-jsx--treesit-font-lock-compatibility-bb1f97b):
Font lock helper function for handle different tree-sitter-javascript
version.
* lisp/progmodes/js.el (js--treesit-font-lock-settings): Use the new
function to handle both nested_identifier and member_expression.
lisp/progmodes/js.el