In data mercoledì 19 luglio 2023 07:11:05 CEST, Theodor Thornhill ha scritto: > For Typescript these changes should go into 'tsx-ts-mode, not > 'typescript-ts-mode. That may be why you are seeing some strange results? No, exactly the same problem occurs, unfortunately. After all, the sources of libtree-sitter-tsx and libtree-sitter-typescript come from the same repository and the content of tree-sitter-typescript/tsx/grammar.js is just that: const defineGrammar = require('../common/define-grammar'); module.exports = defineGrammar('tsx'); > > --- > > "... function to handle ..." fixed > "Indent rules helper, to handle different releases of > tree-sitter-javascript." fixed > > The indentation here looks off. Can you format this? > fixed > > This seems to not be properly converted to tsx from javascript, both in > the docstring and code. Also, I think the name is wrong. Maybe it > should describe its intent a little more closely, something like > "tsx-ts-mode--indent-compatibility-b893426"? Sorry for the error. I fixed them, tested and fixed the function names according to your instructions (also in js.el) Hope the patches are better now. Thanks. Vincenzo