Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apostrophe (') while editing MATLAB not interpreted correctly. #7058

Closed
handdara opened this issue May 17, 2023 · 2 comments
Closed

Apostrophe (') while editing MATLAB not interpreted correctly. #7058

handdara opened this issue May 17, 2023 · 2 comments
Labels
C-bug Category: This is a bug upstream

Comments

@handdara
Copy link

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
image

Helix log

No response

Platform

linux

Terminal Emulator

zellij

Helix Version

helix 23.03 (c622882)

@handdara handdara added the C-bug Category: This is a bug label May 17, 2023
@kirawi
Copy link
Member

kirawi commented May 17, 2023

You should report this upstream: https://github.com/mstanciu552/tree-sitter-matlab

@gabydd
Copy link
Member

gabydd commented Jun 23, 2023

Closed by #7388 See #7386 (comment)

@gabydd gabydd closed this as completed Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug upstream
Projects
None yet
Development

No branches or pull requests

4 participants