helix
helix copied to clipboard
Apostrophe (') while editing MATLAB not interpreted correctly.
Summary
In MATLAB the apostrophe can be used both to denote a string as well as perform conjugation/transposition on Matrices. The latter is not recognized in the syntax highlighting and leads to odd highlighting.
This is a common problem. Here is the same issue in another editor.
Reproduction Steps
This is very easy to reproduce, simply load up the following code in helix.
K = [A+ Kse, G ;
G.' , H + Kbt];
nb = Kse*(v - [0;0;1]);
mb = Kbt*u;
And you should get something that looks like
Helix log
No response
Platform
linux
Terminal Emulator
zellij
Helix Version
helix 23.03 (c6228825)
You should report this upstream: https://github.com/mstanciu552/tree-sitter-matlab
Closed by https://github.com/helix-editor/helix/pull/7388 See https://github.com/helix-editor/helix/issues/7386#issue-1763456264