Over the past few weeks, I've made progress on a matlab tree-sitter major
mode, matlab-ts-mode.el, in the matlab-ts-mode branch. Tree-sitter,
https://tree-sitter.github.io/tree-sitter/ is a major step forward from the
classic technique for building a major-mode in Emacs. With tree-sitter we
have accurate parse trees that form the basis of the major mode. The mode
is very close and independent from matlab-mode. The main item remaining is
integration with matlab-shell. Assuming things go well, I should be able to
merge matlab-ts-mode to the default branch. Therefore, if anyone wants to
check it out, please do so. To look at the matlab-ts-mode branch, clone the
repo, checkout that branch, and get

   ~/.emacs.d/tree-sitter/libtree-sitter-matlab.so

Install ~/.emacs.d/tree-sitter/libtree-sitter-matlab.so by grabbing
matlab.so from   https://github.com/emacs-tree-sitter/tree-sitter-langs
latest release and renaming it to
~/.emacs.d/tree-sitter/libtree-sitter-matlab.so. (.so on Linux, .dll on
Windows, .dylib on Mac)

The matlab tree-sitter shared library we're using is from
https://github.com/acristoffers/tree-sitter-matlab and many thanks to
acristoffers for maintaining that and fixing issues.
_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss

Reply via email to