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

Fix broken attribute parsing in classdef. #88

Merged
merged 7 commits into from
Jul 19, 2024

Conversation

apozharski
Copy link
Contributor

@apozharski apozharski commented Jul 18, 2024

Resolves #87

This still is not entirely correct however it fails only in the case where the end of the attribute block is separated by newline (and line continuation) from the ClassName. Making a fully correct TextMate compatible grammar seems impossible due to the ability to arbitrarily place line continuations, however this is a closer approximation and improves the usability of this grammar for further machine interaction e.g. https://github.com/sphinx-contrib/matlabdomain

Note: #86 must go in first.

@apozharski
Copy link
Contributor Author

Latest push also supports proper parsing of metaclasses on the right hand side of the assignments e.g. InferiorClasses = ?foo.bar.baz

This is currently only supported in attributes however I have opened #89 to generalize this to the top level.

@apozharski apozharski changed the title [WIP] Fix broken attribute parsing in classdef. Fix broken attribute parsing in classdef. Jul 19, 2024
@dklilley dklilley added the CLA signed Indicates that the requester has signed the Contributor License Agreement label Jul 19, 2024
@dklilley
Copy link
Member

Thanks for making these changes!

@dklilley dklilley merged commit 0d9ae8e into mathworks:master Jul 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA signed Indicates that the requester has signed the Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Class Attribute parsing is broken when using cell arrays etc.
2 participants