Skip to content

Class Attribute parsing is broken when using cell arrays etc. #87

@apozharski

Description

@apozharski
classdef (AllowedSubclasses = {?SubClass1,?SubClass2}) SuperClass
end

Even the basic class above is currently parsed extremely incorrectly. See watermarkhu/textmate-grammar-python#67 for details of output in this case.

Fully correctly parsing the class definition section is neigh on impossible due to line continuations and the limitations of textmate grammars (regex based, lack of support for multi-line regex, etc.) however it would be good to limit errors to types of formatting that is unlikely to occur in any reasonably formatted code, e.g.:

classdef  (AllowedSubclasses = {?SubClass1,?SubClass2}) ...
                 SuperClass
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions