>>> "JC" == John C <john.ciolfi...@gmail.com> writes:
> Hi > I would suggest taking a little time to learn about tree-sitter > - Watch this: > > https://www.thestrangeloop.com/2018/tree-sitter---a-new-parsing-system-for-programming-tools.html > - Explore https://tree-sitter.github.io/tree-sitter/ In particular use > the Playground are to see the parse tree for some code (MATLAB isn't there > but several other languages are available in the playground). > - Google for info on tree-sitter > I'm also very new to tree-sitter, so I'm still learning it. With Emacs 30, > which the matlab-ts-mode is based on, I've written a new major mode, > matlab-ts-mode. Think of it as a much better matlab-mode. When you open a > *.m file, run > M-x matlab-ts-mode > What happened with Emacs is that there was one path being taken for > tree-sitter integration which is in https://emacs-tree-sitter.github.io/ > and that is only valid upto Emacs 29. It should not be used with Emacs 30. > In Emacs 30, tree-sitter was built-in, which is a major step forward for > improved language integration into Emacs. I've been writing a guide to > creation of a tree-sitter major mode in the contributing subdirectory of > the Emacs-MATLAB-mode subdirectory on the matlab-ts-mode branch. The guide > is missing a lot, but still should be helpful. Once I have the > matlab-ts-mode done, I plan on cleaning up the guide and sending it to the > Emacs developers to see if it can be put in the manual because details on > how to do this are light and my guide is trying to address that. > There is an excellent https://github.com/emacs-tree-sitter/tree-sitter-langs > site that is for Emacs 29 and earlier, so don't install that directly with > Emacs 30. For Emacs 30, you either need to build the matlab tree-sitter > grammer shared library, ~/.emacs.d/tree-sitter/libtree-sitter-matlab.so or > extract it from the latest release in > https://github.com/emacs-tree-sitter/tree-sitter-langs. To extract the > latest, > 1. click the "latest" link on > https://github.com/emacs-tree-sitter/tree-sitter-langs > 2. Download the *.gz file > 3. Open the *.gz file in Emacs > 4. Look for matlab.so (or matlab.dll or matlab.dylib) > 5. Save that out to ~/.emacs/tree-sitter/libtree-sitter-matlab.so (or > .dll or .dylib depending on what type of system you are on). Ok, I have to read this in more detail and will come back to you. > Creating the HOWTO-elpa.org would be great. Can you put it in the > contributing subdirectory? Sure. > Also, it would be good to do changes on the matlab-ts-mode branch so it can > be merged into default easily. I am a bit confused: Do you want me to have that file in both branches? Uwe -- I strongly condemn Hamas heinous despicable pogroms/atrocities on Israel I strongly condemn Putin's war of aggression against Ukraine. I support to deliver weapons to Ukraine's military. I support the EU and NATO membership of Ukraine.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Matlab-emacs-discuss mailing list Matlab-emacs-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss