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

Property Access Lists break syntax highlighting #92

Open
albheim opened this issue Aug 21, 2024 · 1 comment
Open

Property Access Lists break syntax highlighting #92

albheim opened this issue Aug 21, 2024 · 1 comment
Labels

Comments

@albheim
Copy link

albheim commented Aug 21, 2024

Describe the bug
Upon upgrading to v1.2.5 of the matlab extension the syntax highlighting seems to break on ?ClassName in a property access list like

classdef Test
    properties (Access = public)
        A = 3
    end
    properties (Access = ?Test2) % This becomes white and following blocks are also different compared to if I set e.g. public.
        B = 3
    end
    properties (Access = public)
        C = 3
    end
end

To Reproduce

  1. Install v1.2.5
  2. Paste above code in a file

Expected behavior
Correct highlighting, i.e. the one that is there if we use public instead of ?Test2 in above example.

Screenshots
image

Useful Information

  • OS Version: Windows 10
  • VS Code Version: v1.90.1

Additional context
None

@albheim albheim added the bug label Aug 21, 2024
@dklilley
Copy link
Member

Thanks for reporting this! This behavior stems from the MATLAB language grammar, so I am moving this issue over to that repository.

@dklilley dklilley transferred this issue from mathworks/MATLAB-extension-for-vscode Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants